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(video-layout) Fix auto-pinning latest screenshare.

Jaya Allamsetty66cddddd3e21
diff --git a/react/features/video-layout/functions.any.js b/react/features/video-layout/functions.any.js
index dc1cdb3f83..5ae950af99 100644
--- a/react/features/video-layout/functions.any.js
+++ b/react/features/video-layout/functions.any.js
@@ -7,6 +7,7 @@ import {
getPinnedParticipant,
pinParticipant
} from '../base/participants';
+import { FakeParticipant } from '../base/participants/types';
import { isStageFilmstripAvailable } from '../filmstrip/functions';
import { isVideoPlaying } from '../shared-video/functions';
import { VIDEO_QUALITY_LEVELS } from '../video-quality/constants';
@@ -124,7 +125,7 @@ export function updateAutoPinnedParticipant(
const pinned = getPinnedParticipant(getState);
// if the pinned participant is shared video or some other fake participant we want to skip auto-pinning
- if (pinned?.fakeParticipant) {
+ if (pinned?.fakeParticipant && pinned.fakeParticipant !== FakeParticipant.RemoteScreenShare) {
return;
}