Skip to content

Commit 41bde68

Browse files
authored
Merge pull request #57188 from daledah/fix/54574
fix: navigate back to thread after clicking on header
2 parents 9265a6a + 355e225 commit 41bde68

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/components/ParentNavigationSubtitle.tsx

+3-4
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,10 @@ function ParentNavigationSubtitle({parentNavigationSubtitleData, parentReportAct
4343
onPress={() => {
4444
const parentAction = getReportAction(parentReportID, parentReportActionID);
4545
const isVisibleAction = shouldReportActionBeVisible(parentAction, parentAction?.reportActionID ?? CONST.DEFAULT_NUMBER_ID, canUserPerformWriteAction);
46-
// Pop the thread report screen before navigating to the chat report.
47-
Navigation.goBack(ROUTES.REPORT_WITH_ID.getRoute(parentReportID));
4846
if (isVisibleAction) {
49-
// Pop the chat report screen before navigating to the linked report action.
50-
Navigation.goBack(ROUTES.REPORT_WITH_ID.getRoute(parentReportID, parentReportActionID));
47+
Navigation.navigate(ROUTES.REPORT_WITH_ID.getRoute(parentReportID, parentReportActionID));
48+
} else {
49+
Navigation.navigate(ROUTES.REPORT_WITH_ID.getRoute(parentReportID));
5150
}
5251
}}
5352
accessibilityLabel={translate('threads.parentNavigationSummary', {reportName, workspaceName})}

0 commit comments

Comments
 (0)