瀏覽代碼

fix: Shows the "turn" indication for non-p2p connections. (#3865)

master
bgrozev 6 年之前
父節點
當前提交
d9cf33b4c4
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 6 行新增4 行删除
  1. 6
    4
      react/features/connection-stats/components/ConnectionStatsTable.js

+ 6
- 4
react/features/connection-stats/components/ConnectionStatsTable.js 查看文件

515
                 || transport[0].remoteCandidateType === 'relay';
515
                 || transport[0].remoteCandidateType === 'relay';
516
         }
516
         }
517
 
517
 
518
-        let additionalData = null;
518
+        const additionalData = [];
519
 
519
 
520
         if (isP2P) {
520
         if (isP2P) {
521
-            additionalData = isTURN
522
-                ? <span>{ t('connectionindicator.turn') }</span>
523
-                : <span>{ t('connectionindicator.peer_to_peer') }</span>;
521
+            additionalData.push(
522
+                <span>{ t('connectionindicator.peer_to_peer') }</span>);
523
+        }
524
+        if (isTURN) {
525
+            additionalData.push(<span>{ t('connectionindicator.turn') }</span>);
524
         }
526
         }
525
 
527
 
526
         // First show remote statistics, then local, and then transport type.
528
         // First show remote statistics, then local, and then transport type.

Loading…
取消
儲存