Skip to content

Commit

Permalink
Issue #14886
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
abdulrahuman5196 committed Feb 27, 2023
1 parent 9456e8c commit f2be136
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 f2be136

Please sign in to comment.