Skip to content

Commit

Permalink
fix: restore speaker layout preset
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverlaz committed Oct 13, 2023
1 parent 067e495 commit 10f2b6e
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions packages/client/src/sorting/presets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,24 @@ export const defaultSortPreset = combineComparators(
// ifInvisibleBy(name),
);

/**
* The sorting preset for speaker layout.
*/
export const speakerLayoutSortPreset = combineComparators(
pinned,
screenSharing,
dominantSpeaker,
ifInvisibleBy(
combineComparators(
speaking,
reactionType('raised-hand'),
publishingVideo,
publishingAudio,
),
),
// ifInvisibleBy(name),
);

/**
* The sorting preset for layouts that don't render all participants but
* instead, render them in pages.
Expand Down

0 comments on commit 10f2b6e

Please sign in to comment.