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