From 477d47c10ddf18416fedf8a977bd0b3f63dc2dae Mon Sep 17 00:00:00 2001 From: "nbeck.indy" Date: Wed, 29 Dec 2021 17:32:40 -0500 Subject: [PATCH] fix(breakout-rooms) joining room with hand raised bug Joining a room while hand is raised caused the local raised hand total to be wrong. This is because when the local participant id changes, the old id is not cleared from the raisedHandQueue. --- react/features/base/participants/reducer.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/react/features/base/participants/reducer.js b/react/features/base/participants/reducer.js index 5e5ff9f3f7..d9f8647376 100644 --- a/react/features/base/participants/reducer.js +++ b/react/features/base/participants/reducer.js @@ -84,6 +84,9 @@ ReducerRegistry.register('features/base/participants', (state = DEFAULT_STATE, a const { local } = state; if (local) { + if (action.newValue === 'local' && state.raisedHandsQueue.find(pid => pid.id === local.id)) { + state.raisedHandsQueue = state.raisedHandsQueue.filter(pid => pid.id !== local.id); + } state.local = { ...local, id: action.newValue