prioritize raised hands when sorting participants (#7229)

This commit is contained in:
Christopher Poile 2023-03-23 08:24:36 -04:00 committed by GitHub
parent 1235907945
commit 5089157951
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
};
};