From 2ea8a9ea1b702d33ba49c5d47791e64fc2a4e63a Mon Sep 17 00:00:00 2001 From: mkzie2 Date: Sat, 7 Dec 2024 17:03:59 +0700 Subject: [PATCH] fix temporary thread message disappear --- src/pages/home/report/ReportActionItem.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/home/report/ReportActionItem.tsx b/src/pages/home/report/ReportActionItem.tsx index 2e1696d1c464..cfcdd648f225 100644 --- a/src/pages/home/report/ReportActionItem.tsx +++ b/src/pages/home/report/ReportActionItem.tsx @@ -1012,7 +1012,7 @@ function ReportActionItem({ pendingAction={ draftMessage !== undefined ? undefined : action.pendingAction ?? (action.isOptimisticAction ? CONST.RED_BRICK_ROAD_PENDING_ACTION.ADD : undefined) } - shouldHideOnDelete={!ReportActionsUtils.isThreadParentMessage(action, reportID)} + shouldHideOnDelete={!isThreadReportParentAction} errors={linkedTransactionRouteError ?? ErrorUtils.getLatestErrorMessageField(action as ErrorUtils.OnyxDataWithErrors)} errorRowStyles={[styles.ml10, styles.mr2]} needsOffscreenAlphaCompositing={ReportActionsUtils.isMoneyRequestAction(action)}