Skip to content

Commit

Permalink
Merge pull request #45070 from ShridharGoel/patch-11
Browse files Browse the repository at this point in the history
Fix logic to check if a report is concierge chat
  • Loading branch information
mountiny authored Jul 10, 2024
2 parents e5edc77 + 80863ad commit fcfb2a1
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 @@ -1065,7 +1065,7 @@ function isSystemChat(report: OnyxEntry<Report>): boolean {
* Only returns true if this is our main 1:1 DM report with Concierge.
*/
function isConciergeChatReport(report: OnyxInputOrEntry<Report>): boolean {
const participantAccountIDs = Object.keys(report?.participants ?? {});
const participantAccountIDs = Object.keys(report?.participants ?? {}).filter((accountID) => Number(accountID) !== currentUserAccountID);
return participantAccountIDs.length === 1 && Number(participantAccountIDs[0]) === CONST.ACCOUNT_ID.CONCIERGE && !isChatThread(report);
}

Expand Down

0 comments on commit fcfb2a1

Please sign in to comment.