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) Fix pinning (#11889)

Robert Pintilii5dbb17bc8166
diff --git a/react/features/filmstrip/subscriber.web.js b/react/features/filmstrip/subscriber.web.js
index 4f37cf9cca..94bfd48b7e 100644
--- a/react/features/filmstrip/subscriber.web.js
+++ b/react/features/filmstrip/subscriber.web.js
@@ -72,6 +72,7 @@ StateListenerRegistry.register(
/* listener */ ({ layout }, store) => {
switch (layout) {
case LAYOUTS.TILE_VIEW:
+ store.dispatch(clearStageParticipants());
store.dispatch(pinParticipant(null));
store.dispatch(setTileViewDimensions());
break;
@@ -196,9 +197,9 @@ StateListenerRegistry.register(
* there's just one).
*/
StateListenerRegistry.register(
- /* selector */ state => state['features/filmstrip'].activeParticipants.length,
- /* listener */(length, store) => {
- if (length <= 1) {
+ /* selector */ state => state['features/filmstrip'].activeParticipants,
+ /* listener */(activeParticipants, store) => {
+ if (activeParticipants.length <= 1) {
store.dispatch(selectParticipantInLargeVideo());
}
});