From f5189534a9fcd977a60f56d2e51ecee3452bfce9 Mon Sep 17 00:00:00 2001 From: dukenv0307 <129500732+dukenv0307@users.noreply.github.com> Date: Thu, 14 Mar 2024 17:43:51 +0700 Subject: [PATCH] Update comment ReportSceen Co-authored-by: Joel Davies --- src/pages/home/ReportScreen.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/home/ReportScreen.tsx b/src/pages/home/ReportScreen.tsx index c7575df0323a..88c52f56a88b 100644 --- a/src/pages/home/ReportScreen.tsx +++ b/src/pages/home/ReportScreen.tsx @@ -362,7 +362,7 @@ function ReportScreen({ // eslint-disable-next-line react-hooks/exhaustive-deps }, []); - // Open report when the user has left the thread and go back with back button + // If a user has chosen to leave a thread, and then returns to it (e.g. with the back button), we need to call `openReport` again in order to allow the user to rejoin and to receive real-time updates useEffect(() => { if (!isFocused || prevIsFocused || !ReportUtils.isChatThread(report) || report.notificationPreference !== CONST.REPORT.NOTIFICATION_PREFERENCE.HIDDEN) { return;