Skip to content

Commit

Permalink
navigate back to lhn
Browse files Browse the repository at this point in the history
  • Loading branch information
tienifr committed Sep 12, 2023
1 parent 5c81ddb commit 1164b34
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/libs/actions/Report.js
Original file line number Diff line number Diff line change
Expand Up @@ -1820,8 +1820,11 @@ function leaveRoom(reportID) {
},
);
Navigation.dismissModal();
if (Navigation.getTopmostReportId() === reportID) {
Navigation.goBack();
}
if (report.parentReportID) {
Navigation.navigate(ROUTES.getReportRoute(report.parentReportID), CONST.NAVIGATION.TYPE.UP);
Navigation.navigate(ROUTES.getReportRoute(report.parentReportID), CONST.NAVIGATION.TYPE.FORCED_UP);
return;
}
navigateToConciergeChat();
Expand Down

0 comments on commit 1164b34

Please sign in to comment.