Pārlūkot izejas kodu

[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 gadus atpakaļ
vecāks
revīzija
880fb59b2c

+ 1
- 3
react/features/base/participants/components/ParticipantView.native.js Parādīt failu

@@ -232,9 +232,7 @@ class ParticipantView extends Component<Props> {
232 232
 
233 233
         // If the connection has problems, we will "tint" the video / avatar.
234 234
         const useTint
235
-            = connectionStatus === JitsiParticipantConnectionStatus.INACTIVE
236
-                || connectionStatus
237
-                    === JitsiParticipantConnectionStatus.INTERRUPTED;
235
+            = connectionStatus !== JitsiParticipantConnectionStatus.ACTIVE;
238 236
 
239 237
         const testHintId
240 238
             = this.props.testHintId

Notiek ielāde…
Atcelt
Saglabāt