diff --git a/src/pages/home/ReportScreen.tsx b/src/pages/home/ReportScreen.tsx index 8e9cb1f4396e..2124b4c98adb 100644 --- a/src/pages/home/ReportScreen.tsx +++ b/src/pages/home/ReportScreen.tsx @@ -643,6 +643,14 @@ function ReportScreen({ }); }, [isInaccessibleWhisper]); + useEffect(() => { + if (!!report.lastReadTime || !ReportUtils.isTaskReport(report)) { + return; + } + // After creating the task report then navigating to task detail we don't have any report actions and the last read time is empty so We need to update the initial last read time when opening the task report detail. + Report.readNewestAction(report.reportID); + }, [report]); + if ((!isInaccessibleWhisper && isLinkedReportActionDeleted) ?? (!shouldShowSkeleton && reportActionIDFromRoute && reportActions?.length === 0 && !isLinkingToMessage)) { return (