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: Returns source names only for existing participants.

damencho2b3fbaa36015
diff --git a/react/features/base/participants/subscriber.ts b/react/features/base/participants/subscriber.ts
index 82a76c37df..15c7ad7262 100644
--- a/react/features/base/participants/subscriber.ts
+++ b/react/features/base/participants/subscriber.ts
@@ -10,7 +10,11 @@ import { VIDEO_TYPE } from '../media/constants';
import StateListenerRegistry from '../redux/StateListenerRegistry';
import { createVirtualScreenshareParticipant, participantLeft } from './actions';
-import { getRemoteScreensharesBasedOnPresence } from './functions';
+import {
+ getParticipantById,
+ getRemoteScreensharesBasedOnPresence,
+ getVirtualScreenshareParticipantOwnerId
+} from './functions';
import { FakeParticipant } from './types';
StateListenerRegistry.register(
@@ -76,7 +80,7 @@ function _updateScreenshareParticipants(store: IStore): void {
if (track.local) {
newLocalSceenshareSourceName = sourceName;
- } else {
+ } else if (getParticipantById(state, getVirtualScreenshareParticipantOwnerId(sourceName))) {
acc.push(sourceName);
}
}