Skip to content

Commit

Permalink
Merge pull request #6120 from mozilla/move-raised-hands-to-the-top
Browse files Browse the repository at this point in the history
feat: Move raised hands to top of guestlist
  • Loading branch information
nikk15 authored Jun 13, 2023
2 parents ab4035d + 62631e3 commit b8a4e51
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 @@ -104,7 +104,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 => {
return a.hand_raised ? -1 : 1;
});
me && filteredPeople.unshift(me);

return (
Expand Down

0 comments on commit b8a4e51

Please sign in to comment.