Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

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

bgrozevd9cf33b4c4f0
diff --git a/react/features/connection-stats/components/ConnectionStatsTable.js b/react/features/connection-stats/components/ConnectionStatsTable.js
index bd135b76da..04e58feeb5 100644
--- a/react/features/connection-stats/components/ConnectionStatsTable.js
+++ b/react/features/connection-stats/components/ConnectionStatsTable.js
@@ -515,12 +515,14 @@ class ConnectionStatsTable extends Component<Props> {
|| transport[0].remoteCandidateType === 'relay';
}
- let additionalData = null;
+ const additionalData = [];
if (isP2P) {
- additionalData = isTURN
- ? <span>{ t('connectionindicator.turn') }</span>
- : <span>{ t('connectionindicator.peer_to_peer') }</span>;
+ additionalData.push(
+ <span>{ t('connectionindicator.peer_to_peer') }</span>);
+ }
+ if (isTURN) {
+ additionalData.push(<span>{ t('connectionindicator.turn') }</span>);
}
// First show remote statistics, then local, and then transport type.