Skip to content

Commit 8aff917

Browse files
authored
Merge pull request Expensify#67428 from Expensify/revert-67125-65642-back-button-thread-navigation
2 parents 80a5620 + f1f2886 commit 8aff917

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

src/libs/actions/Report.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3507,16 +3507,7 @@ function navigateToMostRecentReport(currentReport: OnyxEntry<Report>) {
35073507
const lastAccessedReportID = findLastAccessedReport(false, false, undefined, currentReport?.reportID)?.reportID;
35083508

35093509
if (lastAccessedReportID) {
3510-
const isChatThread = isChatThreadReportUtils(currentReport);
35113510
const lastAccessedReportRoute = ROUTES.REPORT_WITH_ID.getRoute(lastAccessedReportID);
3512-
if (isChatThread) {
3513-
// Using requestAnimationFrame to wait for RHP modal dismissal before navigating, avoiding navigation stack issues on web/desktop.
3514-
requestAnimationFrame(() => {
3515-
Navigation.navigate(lastAccessedReportRoute);
3516-
});
3517-
return;
3518-
}
3519-
35203511
Navigation.goBack(lastAccessedReportRoute);
35213512
} else {
35223513
const isChatThread = isChatThreadReportUtils(currentReport);

0 commit comments

Comments
 (0)