Merge pull request #2243 from warrickct/show-group-members-freeze-fix

fix group members sorting causing error.
This commit is contained in:
Audric Ackermann 2022-04-20 15:38:38 +10:00 committed by GitHub
commit f4bf960568
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -38,7 +38,7 @@ const ClassicMemberList = (props: {
}
let currentMembers = convoProps.members || [];
const { groupAdmins } = convoProps;
currentMembers = currentMembers.sort(m => (groupAdmins?.includes(m) ? -1 : 0));
currentMembers = [...currentMembers].sort(m => (groupAdmins?.includes(m) ? -1 : 0));
return (
<>