Various fixes

This commit is contained in:
Ilya Laktyushin 2024-09-03 17:36:12 +04:00
parent ef51bad0be
commit cbfdd6a7e0
2 changed files with 3 additions and 1 deletions

View File

@ -376,7 +376,7 @@ public extension ChatControllerImpl {
case let .withAttachBot(attachBotStart):
context.sharedContext.navigateToChatController(NavigateToChatControllerParams(navigationController: navigationController, context: context, chatLocation: .peer(peer), attachBotStart: attachBotStart))
case let .withBotApp(botAppStart):
context.sharedContext.navigateToChatController(NavigateToChatControllerParams(navigationController: navigationController, context: context, chatLocation: .peer(peer), botAppStart: botAppStart))
context.sharedContext.navigateToChatController(NavigateToChatControllerParams(navigationController: navigationController, context: context, chatLocation: .peer(peer), botAppStart: botAppStart, keepStack: .always))
}
})
}

View File

@ -636,6 +636,8 @@ public final class WebAppController: ViewController, AttachmentContainable {
if let controller = self.controller {
webView.updateMetrics(height: viewportFrame.height, isExpanded: controller.isContainerExpanded(), isStable: !controller.isContainerPanning(), transition: transition)
}
webView.customBottomInset = layout.intrinsicInsets.bottom
}
if let placeholderNode = self.placeholderNode {