Browse Source

[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.
master
Saúl Ibarra Corretgé 7 years ago
parent
commit
880fb59b2c

+ 1
- 3
react/features/base/participants/components/ParticipantView.native.js View File

232
 
232
 
233
         // If the connection has problems, we will "tint" the video / avatar.
233
         // If the connection has problems, we will "tint" the video / avatar.
234
         const useTint
234
         const useTint
235
-            = connectionStatus === JitsiParticipantConnectionStatus.INACTIVE
236
-                || connectionStatus
237
-                    === JitsiParticipantConnectionStatus.INTERRUPTED;
235
+            = connectionStatus !== JitsiParticipantConnectionStatus.ACTIVE;
238
 
236
 
239
         const testHintId
237
         const testHintId
240
             = this.props.testHintId
238
             = this.props.testHintId

Loading…
Cancel
Save