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: Fixes showing left participants in the pane under certain conditions.

damenchoffbaee065da0
diff --git a/react/features/filmstrip/functions.any.ts b/react/features/filmstrip/functions.any.ts
index 1a3cb9e233..0a908d5945 100644
--- a/react/features/filmstrip/functions.any.ts
+++ b/react/features/filmstrip/functions.any.ts
@@ -11,16 +11,17 @@ import { isFilmstripScrollVisible } from './functions';
* Computes the reorderd list of the remote participants.
*
* @param {*} store - The redux store.
+ * @param {boolean} force - Does not short circuit, the execution, make execute all checks.
* @param {string} participantId - The endpoint id of the participant that joined the call.
* @returns {void}
* @private
*/
-export function updateRemoteParticipants(store: IStore, participantId?: string) {
+export function updateRemoteParticipants(store: IStore, force?: boolean, participantId?: string) {
const state = store.getState();
let reorderedParticipants = [];
const { sortedRemoteVirtualScreenshareParticipants } = state['features/base/participants'];
- if (!isFilmstripScrollVisible(state) && !sortedRemoteVirtualScreenshareParticipants.size) {
+ if (!isFilmstripScrollVisible(state) && !sortedRemoteVirtualScreenshareParticipants.size && !force) {
if (participantId) {
const { remoteParticipants } = state['features/filmstrip'];
diff --git a/react/features/filmstrip/middleware.native.ts b/react/features/filmstrip/middleware.native.ts
index 8b198795bd..2cd823f178 100644
--- a/react/features/filmstrip/middleware.native.ts
+++ b/react/features/filmstrip/middleware.native.ts
@@ -28,7 +28,7 @@ MiddlewareRegistry.register(store => next => action => {
store.dispatch(setTileViewDimensions());
break;
case PARTICIPANT_JOINED: {
- updateRemoteParticipants(store, action.participant?.id);
+ updateRemoteParticipants(store, false, action.participant?.id);
break;
}
}
diff --git a/react/features/filmstrip/middleware.web.ts b/react/features/filmstrip/middleware.web.ts
index a7c514d66e..fc77dc8bb3 100644
--- a/react/features/filmstrip/middleware.web.ts
+++ b/react/features/filmstrip/middleware.web.ts
@@ -114,7 +114,7 @@ MiddlewareRegistry.register(store => next => action => {
break;
}
- updateRemoteParticipants(store, action.participant?.id);
+ updateRemoteParticipants(store, false, action.participant?.id);
break;
}
case SETTINGS_UPDATED: {
diff --git a/react/features/filmstrip/subscriber.any.ts b/react/features/filmstrip/subscriber.any.ts
index f61d057e3b..fb5f3e8d3d 100644
--- a/react/features/filmstrip/subscriber.any.ts
+++ b/react/features/filmstrip/subscriber.any.ts
@@ -12,10 +12,13 @@ StateListenerRegistry.register(
/**
* Listens for changes to the remote screenshare participants to recompute the reordered list of the remote endpoints.
+ * We force updateRemoteParticipants to make sure it executes and for the case where
+ * sortedRemoteVirtualScreenshareParticipants becomes 0. We do not want to short circuit it in case of no screen-sharers
+ * and no scroll and triggered for dominant speaker changed.
*/
StateListenerRegistry.register(
/* selector */ state => state['features/base/participants'].sortedRemoteVirtualScreenshareParticipants,
- /* listener */ (sortedRemoteVirtualScreenshareParticipants, store) => updateRemoteParticipants(store));
+ /* listener */ (sortedRemoteVirtualScreenshareParticipants, store) => updateRemoteParticipants(store, true));
/**
* Listens for changes to the dominant speaker to recompute the reordered list of the remote endpoints.