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

This commit is contained in:
bgrozev 2019-02-05 23:13:59 +00:00 committed by GitHub
parent 2b56822a41
commit d9cf33b4c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 4 deletions

View File

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