Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix/33797: Conversation - Back arrow leads to LHN instead of group lists after page refresh in a profile screen #34464

Merged
merged 11 commits into from
Feb 21, 2024
3 changes: 2 additions & 1 deletion src/pages/ReportParticipantsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ function ReportParticipantsPage({report, personalDetails}: ReportParticipantsPag
{({safeAreaPaddingBottomStyle}) => (
<FullPageNotFoundView shouldShow={!report || ReportUtils.isArchivedRoom(report)}>
<HeaderWithBackButton
onBackButtonPress={report ? () => Navigation.goBack(ROUTES.REPORT_WITH_ID_DETAILS.getRoute(report.reportID)) : undefined}
title={translate(
ReportUtils.isChatRoom(report) ||
ReportUtils.isPolicyExpenseChat(report) ||
Expand All @@ -112,7 +113,7 @@ function ReportParticipantsPage({report, personalDetails}: ReportParticipantsPag
if (!option.accountID) {
return;
}
Navigation.navigate(ROUTES.PROFILE.getRoute(option.accountID));
Navigation.navigate(ROUTES.PROFILE.getRoute(option.accountID, report ? ROUTES.REPORT_PARTICIPANTS.getRoute(report.reportID) : undefined));
}}
hideSectionHeaders
showTitleTooltip
Expand Down
Loading