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(filmstrip): Remove SS ep from list of active speakers. This fixes a case where duplicate SS tile appears when SS ep is the dominant speaker and all the active speakers are currently visisble.
Jaya Allamsetty2a5e169c2f56
diff --git a/react/features/base/participants/functions.js b/react/features/base/participants/functions.jsindex 3aabc95b81..79ce9916a2 100644--- a/react/features/base/participants/functions.js+++ b/react/features/base/participants/functions.js@@ -63,12 +63,12 @@ export function getActiveSpeakersToBeDisplayed(stateful: Object | Function) {speakersList} = state['features/base/participants'];const { visibleRemoteParticipants } = state['features/filmstrip'];+ const activeSpeakers = new Map(speakersList);// Do not re-sort the active speakers if all of them are currently visible.- if (typeof visibleRemoteParticipants === 'undefined' || speakersList.size <= visibleRemoteParticipants.size) {- return speakersList;+ if (typeof visibleRemoteParticipants === 'undefined' || activeSpeakers.size <= visibleRemoteParticipants.size) {+ return activeSpeakers;}- const activeSpeakers = new Map(speakersList);let availableSlotsForActiveSpeakers = visibleRemoteParticipants.size;// Remove screenshares from the count.diff --git a/react/features/filmstrip/functions.any.js b/react/features/filmstrip/functions.any.jsindex d971a0ed82..b96e5d28ce 100644--- a/react/features/filmstrip/functions.any.js+++ b/react/features/filmstrip/functions.any.js@@ -49,10 +49,12 @@ export function updateRemoteParticipants(store: Object, participantId: ?number)remoteParticipants.delete(ownerId);remoteParticipants.delete(screenshare);+ speakers.delete(ownerId);}} else {for (const screenshare of screenShares.keys()) {remoteParticipants.delete(screenshare);+ speakers.delete(screenshare);}}