From 92f1985219c8661a933409cf5c1b51a500ed870e Mon Sep 17 00:00:00 2001 From: robertpin Date: Wed, 22 Sep 2021 15:25:55 +0300 Subject: [PATCH] fix(av-moderation) - Mute/ stop video except no longer change moderation status Mute everyone else no longer disables moderation --- .../video-menu/components/AbstractMuteEveryoneDialog.js | 2 +- .../video-menu/components/AbstractMuteEveryonesVideoDialog.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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()); }