From 715b22bfb5ce978a9043d24ccaf6112eb39256d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B0=D0=BC=D1=8F=D0=BD=20=D0=9C=D0=B8=D0=BD=D0=BA?= =?UTF-8?q?=D0=BE=D0=B2?= Date: Tue, 14 Dec 2021 08:24:35 -0600 Subject: [PATCH] fix: Respects disable reactions moderation flag for popups. --- react/features/reactions/middleware.js | 3 ++- react/features/settings/components/web/ModeratorTab.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/react/features/reactions/middleware.js b/react/features/reactions/middleware.js index 2d9623987..8145702c6 100644 --- a/react/features/reactions/middleware.js +++ b/react/features/reactions/middleware.js @@ -194,13 +194,14 @@ MiddlewareRegistry.register(store => next => action => { case SHOW_SOUNDS_NOTIFICATION: { const state = getState(); const isModerator = isLocalParticipantModerator(state); + const { disableReactionsModeration } = state['features/base/config']; const customActions = [ 'notify.reactionSounds' ]; const customFunctions = [ () => dispatch(updateSettings({ soundsReactions: false })) ]; - if (isModerator) { + if (isModerator && !disableReactionsModeration) { customActions.push('notify.reactionSoundsForAll'); customFunctions.push(() => batch(() => { dispatch(setStartReactionsMuted(true)); diff --git a/react/features/settings/components/web/ModeratorTab.js b/react/features/settings/components/web/ModeratorTab.js index e1aa45f38..253969727 100644 --- a/react/features/settings/components/web/ModeratorTab.js +++ b/react/features/settings/components/web/ModeratorTab.js @@ -13,7 +13,7 @@ export type Props = { ...$Exact, /** - * + * If set hides the reactions moderation setting. */ disableReactionsModeration: boolean,