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(raise-hand) Fix multiple raise hand from notification (#11586)

Robert Pintilii9dba1d30b098
diff --git a/react/features/av-moderation/middleware.js b/react/features/av-moderation/middleware.js
index d11e742b98..1bac5fde1b 100644
--- a/react/features/av-moderation/middleware.js
+++ b/react/features/av-moderation/middleware.js
@@ -80,6 +80,8 @@ MiddlewareRegistry.register(({ dispatch, getState }) => next => action => {
let descriptionKey;
let titleKey;
let uid;
+ const localParticipant = getLocalParticipant(getState);
+ const raisedHand = hasRaisedHand(localParticipant);
switch (action.mediaType) {
case MEDIA_TYPE.AUDIO: {
@@ -102,7 +104,7 @@ MiddlewareRegistry.register(({ dispatch, getState }) => next => action => {
dispatch(showNotification({
customActionNameKey: [ 'notify.raiseHandAction' ],
customActionHandler: [ () => batch(() => {
- dispatch(raiseHand(true));
+ !raisedHand && dispatch(raiseHand(true));
dispatch(hideNotification(uid));
}) ],
descriptionKey,