Skip to content

Commit

Permalink
Merge pull request Expensify#45713 from rojiphil/free-trial-badge-on-…
Browse files Browse the repository at this point in the history
…parent-chat-only

ignore all type of thread reports to determine concierge report
  • Loading branch information
mountiny authored Jul 19, 2024
2 parents 808b7c8 + 2a3f27d commit 50d59a5
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 @@ -1102,7 +1102,7 @@ function isSystemChat(report: OnyxEntry<Report>): boolean {
*/
function isConciergeChatReport(report: OnyxInputOrEntry<Report>): boolean {
const participantAccountIDs = Object.keys(report?.participants ?? {}).filter((accountID) => Number(accountID) !== currentUserAccountID);
return participantAccountIDs.length === 1 && Number(participantAccountIDs[0]) === CONST.ACCOUNT_ID.CONCIERGE && !isChatThread(report);
return participantAccountIDs.length === 1 && Number(participantAccountIDs[0]) === CONST.ACCOUNT_ID.CONCIERGE && !isThread(report);
}

function findSelfDMReportID(): string | undefined {
Expand Down

0 comments on commit 50d59a5

Please sign in to comment.