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: Respects disable reactions moderation flag for popups.

Дамян Минков715b22bfb5ce
diff --git a/react/features/reactions/middleware.js b/react/features/reactions/middleware.js
index 2d96239871..8145702c63 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 e1aa45f387..2539697274 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<AbstractDialogTabProps>,
/**
- *
+ * If set hides the reactions moderation setting.
*/
disableReactionsModeration: boolean,