Skip to content

Commit

Permalink
fix: revert fix of order screen share before video (#18490)
Browse files Browse the repository at this point in the history
This reverts commit 0a2f6a1.
  • Loading branch information
EnricoSchw committed Dec 13, 2024
1 parent 866c3ff commit 7461cbc
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/script/calling/Call.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<Participant>(
[selfParticipant, ...withScreenShare, ...withVideo, ...withoutVideo].filter(Boolean),
[selfParticipant, ...withVideo, ...withoutVideo].filter(Boolean),
NUMBER_OF_PARTICIPANTS_IN_ONE_PAGE,
);

Expand Down

0 comments on commit 7461cbc

Please sign in to comment.