Skip to content

Commit

Permalink
Merge pull request #34130 from dukenv0307/fix/33921
Browse files Browse the repository at this point in the history
fix duplicated in LHN when deleted members was invited
  • Loading branch information
thienlnam authored Jan 16, 2024
2 parents d5f0f6f + 1b27f97 commit 5802cda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/ReportUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3597,7 +3597,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
Expand Down

0 comments on commit 5802cda

Please sign in to comment.