Always create a new secret chat on a profile screen

This commit is contained in:
Ali 2020-10-19 00:32:57 +04:00
parent 2e79a50735
commit abcef0ff0e

View File

@ -3087,7 +3087,7 @@ private final class PeerInfoScreenNode: ViewControllerTracingNode, UIScrollViewD
guard let strongSelf = self else {
return
}
if let currentPeerId = currentPeerId {
if false, let currentPeerId = currentPeerId {
if let navigationController = (strongSelf.controller?.navigationController as? NavigationController) {
strongSelf.context.sharedContext.navigateToChatController(NavigateToChatControllerParams(navigationController: navigationController, context: strongSelf.context, chatLocation: .peer(currentPeerId)))
}