Skip to content

Commit

Permalink
Update src/libs/ReportUtils.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Jayesh Mangwani <[email protected]>
  • Loading branch information
ShridharGoel and jayeshmangwani authored Jul 10, 2024
1 parent e9223cf commit 80863ad
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/libs/ReportUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1044,9 +1044,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 ?? {})
.map(Number)
.filter((accountID) => accountID !== currentUserAccountID);
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 80863ad

Please sign in to comment.