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, );