From d058f20fd69b44383e0747628d49c61b6408e906 Mon Sep 17 00:00:00 2001 From: Faizan Shoukat Abbasi Date: Thu, 5 Feb 2026 04:10:36 +0500 Subject: [PATCH 1/2] 80062: Invited to chat only user can't open expense report from the first try --- src/pages/inbox/ReportScreen.tsx | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/src/pages/inbox/ReportScreen.tsx b/src/pages/inbox/ReportScreen.tsx index 6cac880586ec4..9ee22f3b282f9 100644 --- a/src/pages/inbox/ReportScreen.tsx +++ b/src/pages/inbox/ReportScreen.tsx @@ -367,21 +367,9 @@ function ReportScreen({route, navigation, isInSidePanel = false}: ReportScreenPr const {closeSidePanel} = useSidePanel(); - useEffect(() => { - if ( - !isFocused || - !reportIDFromRoute || - report?.reportID || - reportMetadata?.isLoadingInitialReportActions || - reportMetadata?.isOptimisticReport || - isLoadingApp || - userLeavingStatus - ) { - return; - } - - Navigation.goBack(); - }, [isFocused, reportIDFromRoute, report?.reportID, reportMetadata?.isLoadingInitialReportActions, reportMetadata?.isOptimisticReport, isLoadingApp, userLeavingStatus]); + // Removed the effect that called Navigation.goBack() when the report was temporarily missing. + // That caused User B to be dropped back to workspace chat on first open (report not yet in Onyx). + // We now rely on existing loading + not-found states instead of popping navigation during sync. useEffect(() => { if (!prevIsFocused || isFocused) { From 2d26156b4c90cf87a31fd979fe8870162011941d Mon Sep 17 00:00:00 2001 From: Faizan Shoukat Abbasi Date: Thu, 5 Feb 2026 18:53:03 +0500 Subject: [PATCH 2/2] removed extra comment --- src/pages/inbox/ReportScreen.tsx | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/pages/inbox/ReportScreen.tsx b/src/pages/inbox/ReportScreen.tsx index 9ee22f3b282f9..f156906f428ea 100644 --- a/src/pages/inbox/ReportScreen.tsx +++ b/src/pages/inbox/ReportScreen.tsx @@ -367,10 +367,6 @@ function ReportScreen({route, navigation, isInSidePanel = false}: ReportScreenPr const {closeSidePanel} = useSidePanel(); - // Removed the effect that called Navigation.goBack() when the report was temporarily missing. - // That caused User B to be dropped back to workspace chat on first open (report not yet in Onyx). - // We now rely on existing loading + not-found states instead of popping navigation during sync. - useEffect(() => { if (!prevIsFocused || isFocused) { return;