diff --git a/react/features/video-menu/components/AbstractMuteEveryoneDialog.js b/react/features/video-menu/components/AbstractMuteEveryoneDialog.js index bf9848d01..7a80c7e82 100644 --- a/react/features/video-menu/components/AbstractMuteEveryoneDialog.js +++ b/react/features/video-menu/components/AbstractMuteEveryoneDialog.js @@ -105,7 +105,7 @@ export default class AbstractMuteEveryoneDialog extends AbstractMuteRe dispatch(muteAllParticipants(exclude, MEDIA_TYPE.AUDIO)); if (this.state.audioModerationEnabled) { dispatch(requestEnableAudioModeration()); - } else { + } else if (this.state.audioModerationEnabled !== undefined) { dispatch(requestDisableAudioModeration()); } diff --git a/react/features/video-menu/components/AbstractMuteEveryonesVideoDialog.js b/react/features/video-menu/components/AbstractMuteEveryonesVideoDialog.js index b7185736a..129977d31 100644 --- a/react/features/video-menu/components/AbstractMuteEveryonesVideoDialog.js +++ b/react/features/video-menu/components/AbstractMuteEveryonesVideoDialog.js @@ -106,7 +106,7 @@ export default class AbstractMuteEveryonesVideoDialog dispatch(muteAllParticipants(exclude, MEDIA_TYPE.VIDEO)); if (this.state.moderationEnabled) { dispatch(requestEnableVideoModeration()); - } else { + } else if (this.state.moderationEnabled !== undefined) { dispatch(requestDisableVideoModeration()); }