From d9cf33b4c4f03411ffaed77369a4795e075d858f Mon Sep 17 00:00:00 2001 From: bgrozev Date: Tue, 5 Feb 2019 23:13:59 +0000 Subject: [PATCH] fix: Shows the "turn" indication for non-p2p connections. (#3865) --- .../components/ConnectionStatsTable.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/react/features/connection-stats/components/ConnectionStatsTable.js b/react/features/connection-stats/components/ConnectionStatsTable.js index bd135b76d..04e58feeb 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 { || transport[0].remoteCandidateType === 'relay'; } - let additionalData = null; + const additionalData = []; if (isP2P) { - additionalData = isTURN - ? { t('connectionindicator.turn') } - : { t('connectionindicator.peer_to_peer') }; + additionalData.push( + { t('connectionindicator.peer_to_peer') }); + } + if (isTURN) { + additionalData.push({ t('connectionindicator.turn') }); } // First show remote statistics, then local, and then transport type.