浏览代码

fix(av-moderation) - Mute/ stop video except no longer change moderation status

Mute everyone else no longer disables moderation
master
robertpin 3 年前
父节点
当前提交
92f1985219

+ 1
- 1
react/features/video-menu/components/AbstractMuteEveryoneDialog.js 查看文件

@@ -105,7 +105,7 @@ export default class AbstractMuteEveryoneDialog<P: Props> extends AbstractMuteRe
105 105
         dispatch(muteAllParticipants(exclude, MEDIA_TYPE.AUDIO));
106 106
         if (this.state.audioModerationEnabled) {
107 107
             dispatch(requestEnableAudioModeration());
108
-        } else {
108
+        } else if (this.state.audioModerationEnabled !== undefined) {
109 109
             dispatch(requestDisableAudioModeration());
110 110
         }
111 111
 

+ 1
- 1
react/features/video-menu/components/AbstractMuteEveryonesVideoDialog.js 查看文件

@@ -106,7 +106,7 @@ export default class AbstractMuteEveryonesVideoDialog<P: Props>
106 106
         dispatch(muteAllParticipants(exclude, MEDIA_TYPE.VIDEO));
107 107
         if (this.state.moderationEnabled) {
108 108
             dispatch(requestEnableVideoModeration());
109
-        } else {
109
+        } else if (this.state.moderationEnabled !== undefined) {
110 110
             dispatch(requestDisableVideoModeration());
111 111
         }
112 112
 

正在加载...
取消
保存