[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.
This commit is contained in:
Saúl Ibarra Corretgé 2018-06-05 13:42:45 +02:00 committed by Lyubo Marinov
parent 89160e55f0
commit 880fb59b2c
1 changed files with 1 additions and 3 deletions

View File

@ -232,9 +232,7 @@ class ParticipantView extends Component<Props> {
// 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