From 00092d5139ea96c91f53f8cf9154b1419ebaa356 Mon Sep 17 00:00:00 2001 From: Robert Pintilii Date: Wed, 30 Mar 2022 17:24:50 +0300 Subject: [PATCH] fix(notifications) Change moderation notifications to medium (#11262) --- react/features/av-moderation/middleware.js | 4 ++-- react/features/base/participants/actions.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/react/features/av-moderation/middleware.js b/react/features/av-moderation/middleware.js index 927f0385a..95e9f7e6f 100644 --- a/react/features/av-moderation/middleware.js +++ b/react/features/av-moderation/middleware.js @@ -107,7 +107,7 @@ MiddlewareRegistry.register(({ dispatch, getState }) => next => action => { sticky: true, titleKey, uid - }, NOTIFICATION_TIMEOUT_TYPE.STICKY)); + }, NOTIFICATION_TIMEOUT_TYPE.MEDIUM)); break; } @@ -223,7 +223,7 @@ StateListenerRegistry.register( sticky: true, customActionNameKey: [ 'notify.unmute' ], customActionHandler: [ () => dispatch(muteLocal(false, MEDIA_TYPE.AUDIO)) ] - }, NOTIFICATION_TIMEOUT_TYPE.STICKY)); + }, NOTIFICATION_TIMEOUT_TYPE.MEDIUM)); dispatch(playSound(ASKED_TO_UNMUTE_SOUND_ID)); } }); diff --git a/react/features/base/participants/actions.js b/react/features/base/participants/actions.js index 0f0c39514..a6386fa8d 100644 --- a/react/features/base/participants/actions.js +++ b/react/features/base/participants/actions.js @@ -479,7 +479,7 @@ export function participantMutedUs(participant, track) { titleArguments: { participantDisplayName: getParticipantDisplayName(getState, participant.getId()) } - }, NOTIFICATION_TIMEOUT_TYPE.LONG)); + }, NOTIFICATION_TIMEOUT_TYPE.MEDIUM)); }; }