We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1ee8054 + 97cc956 commit 8ad1d91Copy full SHA for 8ad1d91
1 file changed
src/libs/actions/Report.ts
@@ -3510,6 +3510,16 @@ function navigateToMostRecentReport(currentReport: OnyxEntry<Report>) {
3510
3511
if (lastAccessedReportID) {
3512
const lastAccessedReportRoute = ROUTES.REPORT_WITH_ID.getRoute(lastAccessedReportID);
3513
+ const isChatThread = isChatThreadReportUtils(currentReport);
3514
+
3515
+ if (isChatThread) {
3516
+ // Using requestAnimationFrame to wait for RHP modal dismissal before navigating, avoiding navigation stack issues on web/desktop.
3517
+ requestAnimationFrame(() => {
3518
+ Navigation.navigate(lastAccessedReportRoute);
3519
+ });
3520
+ return;
3521
+ }
3522
3523
Navigation.goBack(lastAccessedReportRoute);
3524
} else {
3525
const isChatThread = isChatThreadReportUtils(currentReport);
0 commit comments