Skip to content

Commit

Permalink
Merge pull request #15509 from abdulrahuman5196/group-member-order
Browse files Browse the repository at this point in the history
Fix group member order changing randomly when group members have phone numbers
  • Loading branch information
luacmartins authored Feb 28, 2023
2 parents 1856848 + f2be136 commit 05c84c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/ReportUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -1380,7 +1380,7 @@ function getChatByParticipants(newParticipantList) {
}

// Only return the room if it has all the participants and is not a policy room
return !isUserCreatedPolicyRoom(report) && _.isEqual(newParticipantList, report.participants.sort());
return !isUserCreatedPolicyRoom(report) && _.isEqual(newParticipantList, _.sortBy(report.participants));
});
}

Expand Down

0 comments on commit 05c84c8

Please sign in to comment.