Browse Source

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

master
bgrozev 6 years ago
parent
commit
d9cf33b4c4
No account linked to committer's email address

+ 6
- 4
react/features/connection-stats/components/ConnectionStatsTable.js View File

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

Loading…
Cancel
Save