Skip to content

Commit

Permalink
Merge pull request #33744 from dukenv0307/fix/33521
Browse files Browse the repository at this point in the history
Go back home before navigating to Concierge
  • Loading branch information
youssef-lr authored Jan 4, 2024
2 parents 8c19e21 + cf7b1dc commit 7da5757
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/libs/actions/Report.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2134,6 +2134,8 @@ function leaveRoom(reportID: string, isWorkspaceMemberLeavingWorkspaceRoom = fal
const participantAccountIDs = PersonalDetailsUtils.getAccountIDsByLogins([CONST.EMAIL.CONCIERGE]);
const chat = ReportUtils.getChatByParticipants(participantAccountIDs);
if (chat?.reportID) {
// We should call Navigation.goBack to pop the current route first before navigating to Concierge.
Navigation.goBack(ROUTES.HOME);
Navigation.navigate(ROUTES.REPORT_WITH_ID.getRoute(chat.reportID));
}
}
Expand Down

0 comments on commit 7da5757

Please sign in to comment.