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

pull/3866/head jitsi-meet_3532
bgrozev 6 years ago committed by GitHub
parent 2b56822a41
commit d9cf33b4c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      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.

Loading…
Cancel
Save