Переглянути джерело

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

j8
bgrozev 6 роки тому
джерело
коміт
d9cf33b4c4
Аккаунт користувача з таким Email не знайдено

+ 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.

Завантаження…
Відмінити
Зберегти