Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

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

robertpin92f1985219c8
diff --git a/react/features/video-menu/components/AbstractMuteEveryoneDialog.js b/react/features/video-menu/components/AbstractMuteEveryoneDialog.js
index bf9848d011..7a80c7e828 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<P: Props> 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 b7185736a1..129977d310 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<P: Props>
dispatch(muteAllParticipants(exclude, MEDIA_TYPE.VIDEO));
if (this.state.moderationEnabled) {
dispatch(requestEnableVideoModeration());
- } else {
+ } else if (this.state.moderationEnabled !== undefined) {
dispatch(requestDisableVideoModeration());
}