Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Fix sort order for facepiles which was exactly reverse (#7771)
Browse files Browse the repository at this point in the history
  • Loading branch information
t3chguy authored Feb 10, 2022
1 parent 7c344a2 commit 2f7b262
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/views/elements/FacePile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ const FacePile = ({ room, onlyKnownUsers = true, numShown = DEFAULT_NUM_FACES, .
const count = members.length;

// sort users with an explicit avatar first
const iteratees = [member => !!member.getMxcAvatarUrl()];
const iteratees = [member => member.getMxcAvatarUrl() ? 0 : 1];
if (onlyKnownUsers) {
members = members.filter(isKnownMember);
} else {
// sort known users first
iteratees.unshift(member => isKnownMember(member));
iteratees.unshift(member => isKnownMember(member) ? 0 : 1);
}

// exclude ourselves from the shown members list
Expand Down

0 comments on commit 2f7b262

Please sign in to comment.