From 1b27f97cfba198d9820e7935132ae0ceb2328a8d Mon Sep 17 00:00:00 2001 From: dukenv0307 Date: Tue, 9 Jan 2024 14:58:16 +0700 Subject: [PATCH] fix duplicated in LHN when deleted members was invited --- src/libs/ReportUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/ReportUtils.ts b/src/libs/ReportUtils.ts index 0d7658adf180..ddb03bcc334c 100644 --- a/src/libs/ReportUtils.ts +++ b/src/libs/ReportUtils.ts @@ -3551,7 +3551,7 @@ function getChatByParticipantsAndPolicy(newParticipantList: number[], policyID: if (!report?.participantAccountIDs) { return false; } - const sortedParticipanctsAccountIDs = report.parentReportActionIDs?.sort(); + const sortedParticipanctsAccountIDs = report.participantAccountIDs?.sort(); // Only return the room if it has all the participants and is not a policy room return report.policyID === policyID && lodashIsEqual(newParticipantList, sortedParticipanctsAccountIDs); }) ?? null