浏览代码

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

j8
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,12 +515,14 @@ class ConnectionStatsTable extends Component<Props> {
515 515
                 || transport[0].remoteCandidateType === 'relay';
516 516
         }
517 517
 
518
-        let additionalData = null;
518
+        const additionalData = [];
519 519
 
520 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 528
         // First show remote statistics, then local, and then transport type.

正在加载...
取消
保存