From 4fade6d841924d5064e524de4a829854042d749e Mon Sep 17 00:00:00 2001 From: Akinwale Ariwodola Date: Tue, 24 Oct 2023 17:01:05 +0100 Subject: [PATCH] add chatType field to optionItem for identifying group chat reports --- src/libs/SidebarUtils.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libs/SidebarUtils.js b/src/libs/SidebarUtils.js index bd3d730edc0c..6b9e6d10fd16 100644 --- a/src/libs/SidebarUtils.js +++ b/src/libs/SidebarUtils.js @@ -268,6 +268,7 @@ function getOptionData(report, reportActions, personalDetails, preferredLocale, isExpenseRequest: false, isWaitingOnBankAccount: false, isAllowedToComment: true, + chatType: null, }; const participantPersonalDetailList = _.values(OptionsListUtils.getPersonalDetailsForAccountIDs(report.participantAccountIDs, personalDetails)); @@ -305,6 +306,7 @@ function getOptionData(report, reportActions, personalDetails, preferredLocale, result.isWaitingOnBankAccount = report.isWaitingOnBankAccount; result.notificationPreference = report.notificationPreference || null; result.isAllowedToComment = !ReportUtils.shouldDisableWriteActions(report); + result.chatType = report.chatType; const hasMultipleParticipants = participantPersonalDetailList.length > 1 || result.isChatRoom || result.isPolicyExpenseChat; const subtitle = ReportUtils.getChatRoomSubtitle(report);