Skip to content

Commit

Permalink
Move raised hand to top of guestlist
Browse files Browse the repository at this point in the history
  • Loading branch information
nikk15 committed Jun 12, 2023
1 parent c7935ce commit 63e2487
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/react-components/room/PeopleSidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,11 @@ export function PeopleSidebar({
}) {
const intl = useIntl();
const me = people.find(person => !!person.isMe);
const filteredPeople = people.filter(person => !person.isMe);
const filteredPeople = people
.filter(person => !person.isMe)
.sort((a, b) => {
return a.hand_raised ? -1 : 1;
});
me && filteredPeople.unshift(me);

return (
Expand Down

0 comments on commit 63e2487

Please sign in to comment.