Browse Source

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

Mute everyone else no longer disables moderation
master
robertpin 3 years ago
parent
commit
92f1985219

+ 1
- 1
react/features/video-menu/components/AbstractMuteEveryoneDialog.js View File

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 View File

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
 

Loading…
Cancel
Save