Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
fix: Skip sending unnecessary signalling for raise hand.
damenchoec6abc1ce9f6
diff --git a/react/features/base/participants/middleware.js b/react/features/base/participants/middleware.jsindex ec762e7a89..2599a5d05b 100644--- a/react/features/base/participants/middleware.js+++ b/react/features/base/participants/middleware.js@@ -71,16 +71,24 @@ MiddlewareRegistry.register(store => next => action => {break;case DOMINANT_SPEAKER_CHANGED: {- // Ensure the raised hand state is cleared for the dominant speaker.+ // Ensure the raised hand state is cleared for the dominant speaker+ // and only if it was set when this is the local participantconst { conference, id } = action.participant;const participant = getLocalParticipant(store.getState());+ const isLocal = participant && participant.id === id;++ if (isLocal && participant.raisedHand === undefined) {+ // if local was undefined, let's leave it like that+ // avoids sending unnecessary presence updates+ break;+ }participant&& store.dispatch(participantUpdated({conference,id,- local: participant.id === id,+ local: isLocal,raisedHand: false}));@@ -369,10 +377,10 @@ function _participantJoinedOrUpdated(store, next, action) {if (local) {const { conference } = getState()['features/base/conference'];- conference- && conference.setLocalParticipantProperty(- 'raisedHand',- raisedHand);+ // Send raisedHand signalling only if there is a change+ if (conference && raisedHand !== getLocalParticipant(getState()).raisedHand) {+ conference.setLocalParticipantProperty('raisedHand', raisedHand);+ }}}