mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
no message
This commit is contained in:
@@ -3,11 +3,11 @@ import Display
|
||||
import TelegramCore
|
||||
import Postbox
|
||||
|
||||
func navigateToChatController(navigationController: NavigationController, account: Account, peerId: PeerId) {
|
||||
public func navigateToChatController(navigationController: NavigationController, account: Account, peerId: PeerId) {
|
||||
var found = false
|
||||
for controller in navigationController.viewControllers {
|
||||
if let controller = controller as? ChatController, controller.peerId == peerId {
|
||||
navigationController.popToViewController(controller, animated: true)
|
||||
let _ = navigationController.popToViewController(controller, animated: true)
|
||||
found = true
|
||||
break
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user