prioritize raised hands when sorting participants (#7229)
This commit is contained in:
parent
1235907945
commit
5089157951
1 changed files with 6 additions and 6 deletions
|
|
@ -40,12 +40,6 @@ const sortByState = (presenterID?: string) => {
|
|||
return 1;
|
||||
}
|
||||
|
||||
if (!a.muted && b.muted) {
|
||||
return -1;
|
||||
} else if (!b.muted && a.muted) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (a.raisedHand && !b.raisedHand) {
|
||||
return -1;
|
||||
} else if (b.raisedHand && !a.raisedHand) {
|
||||
|
|
@ -54,6 +48,12 @@ const sortByState = (presenterID?: string) => {
|
|||
return a.raisedHand - b.raisedHand;
|
||||
}
|
||||
|
||||
if (!a.muted && b.muted) {
|
||||
return -1;
|
||||
} else if (!b.muted && a.muted) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue