浏览代码

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

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

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

105
         dispatch(muteAllParticipants(exclude, MEDIA_TYPE.AUDIO));
105
         dispatch(muteAllParticipants(exclude, MEDIA_TYPE.AUDIO));
106
         if (this.state.audioModerationEnabled) {
106
         if (this.state.audioModerationEnabled) {
107
             dispatch(requestEnableAudioModeration());
107
             dispatch(requestEnableAudioModeration());
108
-        } else {
108
+        } else if (this.state.audioModerationEnabled !== undefined) {
109
             dispatch(requestDisableAudioModeration());
109
             dispatch(requestDisableAudioModeration());
110
         }
110
         }
111
 
111
 

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

106
         dispatch(muteAllParticipants(exclude, MEDIA_TYPE.VIDEO));
106
         dispatch(muteAllParticipants(exclude, MEDIA_TYPE.VIDEO));
107
         if (this.state.moderationEnabled) {
107
         if (this.state.moderationEnabled) {
108
             dispatch(requestEnableVideoModeration());
108
             dispatch(requestEnableVideoModeration());
109
-        } else {
109
+        } else if (this.state.moderationEnabled !== undefined) {
110
             dispatch(requestDisableVideoModeration());
110
             dispatch(requestDisableVideoModeration());
111
         }
111
         }
112
 
112
 

正在加载...
取消
保存