fix: Respects disable reactions moderation flag for popups.

This commit is contained in:
Дамян Минков 2021-12-14 08:24:35 -06:00
parent 913945e820
commit 715b22bfb5
2 changed files with 3 additions and 2 deletions

View File

@ -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));

View File

@ -13,7 +13,7 @@ export type Props = {
...$Exact<AbstractDialogTabProps>,
/**
*
* If set hides the reactions moderation setting.
*/
disableReactionsModeration: boolean,