From 0ecc138ff6743bd51d987f342d4a0d4986a0e542 Mon Sep 17 00:00:00 2001 From: Ilya Laktyushin Date: Mon, 22 Feb 2021 22:07:25 +0400 Subject: [PATCH] Fix navigation to private message from link --- submodules/TelegramUI/Sources/TextLinkHandling.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/submodules/TelegramUI/Sources/TextLinkHandling.swift b/submodules/TelegramUI/Sources/TextLinkHandling.swift index e981b5c7cd..a2e5b6e574 100644 --- a/submodules/TelegramUI/Sources/TextLinkHandling.swift +++ b/submodules/TelegramUI/Sources/TextLinkHandling.swift @@ -53,8 +53,8 @@ func handleTextLinkActionImpl(context: AccountContext, peerId: PeerId?, navigate switch result { case let .externalUrl(url): context.sharedContext.applicationBindings.openUrl(url) - case let .peer(peerId, _): - openResolvedPeerImpl(peerId, .default) + case let .peer(peerId, navigation): + openResolvedPeerImpl(peerId, navigation) case let .channelMessage(peerId, messageId): if let navigationController = controller.navigationController as? NavigationController { context.sharedContext.navigateToChatController(NavigateToChatControllerParams(navigationController: navigationController, context: context, chatLocation: .peer(peerId), subject: .message(id: messageId, highlight: true)))