Skip to content

Commit 44ca1b2

Browse files
committed
fix: added chatReportID to the optimistic chat report while building transaction thread
1 parent 4692a45 commit 44ca1b2

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/libs/ReportUtils.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7644,6 +7644,7 @@ type BuildOptimisticChatReportParams = {
76447644
avatarUrl?: string;
76457645
optimisticReportID?: string;
76467646
isPinned?: boolean;
7647+
chatReportID?: string;
76477648
};
76487649

76497650
function buildOptimisticChatReport({
@@ -7663,6 +7664,7 @@ function buildOptimisticChatReport({
76637664
avatarUrl = '',
76647665
optimisticReportID = '',
76657666
isPinned = false,
7667+
chatReportID = undefined,
76667668
}: BuildOptimisticChatReportParams): OptimisticChatReport {
76677669
const isWorkspaceChatType = chatType && isWorkspaceChat(chatType);
76687670
const participants = participantList.reduce((reportParticipants: Participants, accountID: number) => {
@@ -7699,6 +7701,7 @@ function buildOptimisticChatReport({
76997701
description,
77007702
writeCapability,
77017703
avatarUrl,
7704+
chatReportID,
77027705
};
77037706

77047707
if (chatType === CONST.REPORT.CHAT_TYPE.INVOICE) {
@@ -8529,6 +8532,7 @@ function buildTransactionThread(
85298532
...existingTransactionThreadReport,
85308533
parentReportActionID: reportAction?.reportActionID,
85318534
parentReportID: moneyRequestReport?.reportID,
8535+
chatReportID: moneyRequestReport?.reportID,
85328536
reportName: getTransactionReportName({reportAction}),
85338537
policyID: moneyRequestReport?.policyID,
85348538
};
@@ -8543,6 +8547,7 @@ function buildTransactionThread(
85438547
parentReportActionID: reportAction?.reportActionID,
85448548
parentReportID: moneyRequestReport?.reportID,
85458549
optimisticReportID: optimisticTransactionThreadReportID,
8550+
chatReportID: moneyRequestReport?.reportID,
85468551
});
85478552
}
85488553

0 commit comments

Comments
 (0)