From d79322979e6c84e473ae50b0ede9c15ad5b50509 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 5e5ff9f3f..d9f864737 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