Skip to content

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

fix(filmstrip) prevent duplicated participants

Saúl Ibarra Corretgé4bb1697115d8
diff --git a/react/features/filmstrip/functions.any.js b/react/features/filmstrip/functions.any.js
index b96e5d28ce..06ee0562d9 100644
--- a/react/features/filmstrip/functions.any.js
+++ b/react/features/filmstrip/functions.any.js
@@ -25,7 +25,7 @@ export function updateRemoteParticipants(store: Object, participantId: ?number)
const { remoteParticipants } = state['features/filmstrip'];
reorderedParticipants = [ ...remoteParticipants, participantId ];
- store.dispatch(setRemoteParticipants(reorderedParticipants));
+ store.dispatch(setRemoteParticipants(Array.from(new Set(reorderedParticipants))));
}
return;
@@ -92,7 +92,7 @@ export function updateRemoteParticipants(store: Object, participantId: ?number)
];
}
- store.dispatch(setRemoteParticipants(reorderedParticipants));
+ store.dispatch(setRemoteParticipants(Array.from(new Set(reorderedParticipants))));
}
/**