From 01f92b20c92883d69e0aa5de157734d81a706d34 Mon Sep 17 00:00:00 2001 From: Antony Kithinzi Date: Tue, 12 Mar 2024 17:12:33 -0400 Subject: [PATCH] fix: using the getChatType function in the isWorkspaceThread function to solve regression #38171 * fixing isWorkspaceThread function regression * double negation (`!!`) on the `getChatType` function --- src/libs/ReportUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/ReportUtils.ts b/src/libs/ReportUtils.ts index 808c5a5168ba..8dc1c9967f13 100644 --- a/src/libs/ReportUtils.ts +++ b/src/libs/ReportUtils.ts @@ -1181,7 +1181,7 @@ function hasOnlyTransactionsWithPendingRoutes(iouReportID: string | undefined): * If the report is a thread and has a chat type set, it is a workspace chat. */ function isWorkspaceThread(report: OnyxEntry): boolean { - return isThread(report) && isChatReport(report) && !isDM(report); + return isThread(report) && isChatReport(report) && !!getChatType(report); } /**