fix: Stops auto pinning if shared video is playing.

This commit is contained in:
damencho 2021-06-04 16:02:50 -05:00 committed by Дамян Минков
parent cb2891ead3
commit 4ace04e63c
1 changed files with 5 additions and 0 deletions

View File

@ -101,6 +101,11 @@ function _updateAutoPinnedParticipant(screenShares, { dispatch, getState }) {
const remoteScreenShares = state['features/video-layout'].remoteScreenShares;
const pinned = getPinnedParticipant(getState);
// if the pinned participant is shared video or some other fake participant we want to skip auto-pinning
if (pinned?.isFakeParticipant) {
return;
}
// Unpin the screenshare when the screensharing participant leaves. Switch to tile view if no other
// participant was pinned before screenshare was auto-pinned, pin the previously pinned participant otherwise.
if (!remoteScreenShares?.length) {