From 4334667627c15d421c0f99336305ad3f301bae17 Mon Sep 17 00:00:00 2001 From: Enrico Schwendig Date: Fri, 13 Dec 2024 15:48:10 +0100 Subject: [PATCH] Revert "fix: order screen share before video (#18490)" This reverts commit 0a2f6a136371e16e5cee81b66c5d99d7cfaa7068. --- src/script/calling/Call.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/script/calling/Call.ts b/src/script/calling/Call.ts index 12f6eddcf92..4446ca9b88d 100644 --- a/src/script/calling/Call.ts +++ b/src/script/calling/Call.ts @@ -226,13 +226,10 @@ export class Call { const selfParticipant = this.getSelfParticipant(); const remoteParticipants = this.getRemoteParticipants().sort((p1, p2) => sortUsersByPriority(p1.user, p2.user)); - const [withVideoAndScreenShare, withoutVideo] = partition(remoteParticipants, participant => - participant.isSendingVideo(), - ); - const [withScreenShare, withVideo] = partition(withVideoAndScreenShare, participant => participant.sharesScreen()); + const [withVideo, withoutVideo] = partition(remoteParticipants, participant => participant.isSendingVideo()); const newPages = chunk( - [selfParticipant, ...withScreenShare, ...withVideo, ...withoutVideo].filter(Boolean), + [selfParticipant, ...withVideo, ...withoutVideo].filter(Boolean), NUMBER_OF_PARTICIPANTS_IN_ONE_PAGE, );