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: {
|
case SHOW_SOUNDS_NOTIFICATION: {
|
||||||
const state = getState();
|
const state = getState();
|
||||||
const isModerator = isLocalParticipantModerator(state);
|
const isModerator = isLocalParticipantModerator(state);
|
||||||
|
const { disableReactionsModeration } = state['features/base/config'];
|
||||||
|
|
||||||
const customActions = [ 'notify.reactionSounds' ];
|
const customActions = [ 'notify.reactionSounds' ];
|
||||||
const customFunctions = [ () => dispatch(updateSettings({
|
const customFunctions = [ () => dispatch(updateSettings({
|
||||||
soundsReactions: false
|
soundsReactions: false
|
||||||
})) ];
|
})) ];
|
||||||
|
|
||||||
if (isModerator) {
|
if (isModerator && !disableReactionsModeration) {
|
||||||
customActions.push('notify.reactionSoundsForAll');
|
customActions.push('notify.reactionSoundsForAll');
|
||||||
customFunctions.push(() => batch(() => {
|
customFunctions.push(() => batch(() => {
|
||||||
dispatch(setStartReactionsMuted(true));
|
dispatch(setStartReactionsMuted(true));
|
||||||
|
|
|
@ -13,7 +13,7 @@ export type Props = {
|
||||||
...$Exact<AbstractDialogTabProps>,
|
...$Exact<AbstractDialogTabProps>,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
* If set hides the reactions moderation setting.
|
||||||
*/
|
*/
|
||||||
disableReactionsModeration: boolean,
|
disableReactionsModeration: boolean,
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue