Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

feat(participants): revert prev change

Calin-Teodor3066fc1d314a
diff --git a/react/features/base/participants/reducer.ts b/react/features/base/participants/reducer.ts
index d1318b42a2..c4edc956e2 100644
--- a/react/features/base/participants/reducer.ts
+++ b/react/features/base/participants/reducer.ts
@@ -118,13 +118,17 @@ ReducerRegistry.register<IParticipantsState>('features/base/participants',
case NOTIFIED_TO_SPEAK: {
return {
...state,
- raisedHandsQueue: state.raisedHandsQueue.length ? [
- {
- ...state.raisedHandsQueue[0],
- hasBeenNotified: true
- },
- ...state.raisedHandsQueue.slice(1)
- ] : []
+ raisedHandsQueue: state.raisedHandsQueue.map((item, index) => {
+ if (index === 0) {
+
+ return {
+ ...item,
+ hasBeenNotified: true
+ };
+ }
+
+ return item;
+ })
};
}