浏览代码

[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 年前
父节点
当前提交
880fb59b2c
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. 1
    3
      react/features/base/participants/components/ParticipantView.native.js

+ 1
- 3
react/features/base/participants/components/ParticipantView.native.js 查看文件

@@ -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

正在加载...
取消
保存