mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 11:22:31 +00:00
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.
This commit is contained in:
committed by
Horatiu Muresan
parent
7aac634a7d
commit
477d47c10d
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user