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(raise-hand) clone queue instead of mutate (#14867)
Mengyuan Liu9e1e6237ce11
diff --git a/react/features/base/participants/middleware.ts b/react/features/base/participants/middleware.tsindex c1c45bc447..675e8ccc4d 100644--- a/react/features/base/participants/middleware.ts+++ b/react/features/base/participants/middleware.ts@@ -258,10 +258,8 @@ MiddlewareRegistry.register(store => next => action => {let queue = getRaiseHandsQueue(store.getState());if (participant.raisedHandTimestamp) {- queue.push({- id: participant.id,- raisedHandTimestamp: participant.raisedHandTimestamp- });+ queue = [ ...queue, { id: participant.id,+ raisedHandTimestamp: participant.raisedHandTimestamp } ];// sort the queue before adding to store.queue = queue.sort(({ raisedHandTimestamp: a }, { raisedHandTimestamp: b }) => a - b);