diff --git a/src/libs/ReportUtils.js b/src/libs/ReportUtils.js index 4c03e35b642c..c824ea3e180a 100644 --- a/src/libs/ReportUtils.js +++ b/src/libs/ReportUtils.js @@ -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)); }); }