Skip to content

Commit f1f2886

Browse files
authored
Revert "fix back button does not navigate to the specific thread"
1 parent 7a30ca9 commit f1f2886

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
@@ -3506,16 +3506,7 @@ function navigateToMostRecentReport(currentReport: OnyxEntry<Report>) {
35063506
const lastAccessedReportID = findLastAccessedReport(false, false, undefined, currentReport?.reportID)?.reportID;
35073507

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

0 commit comments

Comments
 (0)