fix: Respects disable reactions moderation flag for popups.
This commit is contained in:
parent
913945e820
commit
715b22bfb5
|
@ -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));
|
||||
|
|
|
@ -13,7 +13,7 @@ export type Props = {
|
|||
...$Exact<AbstractDialogTabProps>,
|
||||
|
||||
/**
|
||||
*
|
||||
* If set hides the reactions moderation setting.
|
||||
*/
|
||||
disableReactionsModeration: boolean,
|
||||
|
||||
|
|
Loading…
Reference in New Issue