From 880fb59b2cc00d0cc5a06a500bfb16786e2c7a45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Tue, 5 Jun 2018 13:42:45 +0200 Subject: [PATCH] [RN] Simplify logic for using tinted view in ParticipantView Use it unless the connection is not ACTIVE. We don't really care if it's recovering or whatever, if it's not active it has problems, so that's that. This fixes a potential edge case in which the connection remains in RESTORING state for some time. --- .../base/participants/components/ParticipantView.native.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/react/features/base/participants/components/ParticipantView.native.js b/react/features/base/participants/components/ParticipantView.native.js index 21908aa5d..3b0062b4a 100644 --- a/react/features/base/participants/components/ParticipantView.native.js +++ b/react/features/base/participants/components/ParticipantView.native.js @@ -232,9 +232,7 @@ class ParticipantView extends Component { // If the connection has problems, we will "tint" the video / avatar. const useTint - = connectionStatus === JitsiParticipantConnectionStatus.INACTIVE - || connectionStatus - === JitsiParticipantConnectionStatus.INTERRUPTED; + = connectionStatus !== JitsiParticipantConnectionStatus.ACTIVE; const testHintId = this.props.testHintId