From ca370bd066e75caa8ab7a5bdfcc67f0ebba32c59 Mon Sep 17 00:00:00 2001 From: Ilya Laktyushin Date: Fri, 3 May 2024 18:29:03 +0400 Subject: [PATCH] Fix bot app opening from story caption --- .../Sources/StoryItemSetContainerViewSendMessage.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/submodules/TelegramUI/Components/Stories/StoryContainerScreen/Sources/StoryItemSetContainerViewSendMessage.swift b/submodules/TelegramUI/Components/Stories/StoryContainerScreen/Sources/StoryItemSetContainerViewSendMessage.swift index 3618def914..3b495e571a 100644 --- a/submodules/TelegramUI/Components/Stories/StoryContainerScreen/Sources/StoryItemSetContainerViewSendMessage.swift +++ b/submodules/TelegramUI/Components/Stories/StoryContainerScreen/Sources/StoryItemSetContainerViewSendMessage.swift @@ -2711,6 +2711,10 @@ final class StoryItemSetContainerSendMessage { if let navigationController = controller.navigationController as? NavigationController { component.context.sharedContext.navigateToChatController(NavigateToChatControllerParams(navigationController: navigationController, context: component.context, chatLocation: .peer(peerId), attachBotStart: attachBotStart)) } + case let .withBotApp(botAppStart): + if let navigationController = controller.navigationController as? NavigationController { + component.context.sharedContext.navigateToChatController(NavigateToChatControllerParams(navigationController: navigationController, context: component.context, chatLocation: .peer(peerId), botAppStart: botAppStart)) + } default: break }