Skip to content

Commit

Permalink
fix duplicated in LHN when deleted members was invited
Browse files Browse the repository at this point in the history
  • Loading branch information
dukenv0307 committed Jan 9, 2024
1 parent 85fee5a commit 1b27f97
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 @@ -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
Expand Down

0 comments on commit 1b27f97

Please sign in to comment.