Skip to content

Commit a6d4e31

Browse files
committed
fix settings stack navigation
1 parent 71e050d commit a6d4e31

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎submodules/TelegramUI/Components/PeerInfo/PeerInfoScreen/Sources/PeerInfoScreenSettingsActions.swift‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ extension PeerInfoScreenNode {
2525
return
2626
}
2727

28-
if strongSelf.isMyProfile {
28+
if strongSelf.isMyProfile || strongSelf.isSettings { // MARK: Swiftgram
2929
navigationController.pushViewController(c)
3030
} else {
3131
var updatedControllers = navigationController.viewControllers
@@ -85,7 +85,7 @@ extension PeerInfoScreenNode {
8585
return
8686
}
8787
if let controller = self.controller, let navigationController = controller.navigationController as? NavigationController {
88-
self.context.sharedContext.navigateToChatController(NavigateToChatControllerParams(navigationController: navigationController, context: self.context, chatLocation: .peer(peer)))
88+
self.context.sharedContext.navigateToChatController(NavigateToChatControllerParams(navigationController: navigationController, context: self.context, chatLocation: .peer(peer), keepStack: .always)) // MARK: Swiftgram
8989
}
9090
})
9191
case .recentCalls:
@@ -386,7 +386,7 @@ extension PeerInfoScreenNode {
386386
|> deliverOnMainQueue).startStrict(next: { [weak controller] peer in
387387
controller?.dismiss()
388388
if let peer = peer, let navigationController = navigationController {
389-
context.sharedContext.navigateToChatController(NavigateToChatControllerParams(navigationController: navigationController, context: context, chatLocation: .peer(peer)))
389+
context.sharedContext.navigateToChatController(NavigateToChatControllerParams(navigationController: navigationController, context: context, chatLocation: .peer(peer), keepStack: .always)) // MARK: Swiftgram
390390
}
391391
}))
392392
}

0 commit comments

Comments
 (0)