mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
Various fixes
This commit is contained in:
parent
42085036a2
commit
45a9f55b0b
5 changed files with 43 additions and 36 deletions
|
|
@ -3666,14 +3666,14 @@ public final class WebAppController: ViewController, AttachmentContainable {
|
|||
self.navigationItem.leftBarButtonItem = UIBarButtonItem(customDisplayNode: cancelButtonNode)
|
||||
}
|
||||
|
||||
let morehButtonNode: BarComponentHostNode
|
||||
let moreButtonNode: BarComponentHostNode
|
||||
if let current = self.moreBarButtonNode {
|
||||
morehButtonNode = current
|
||||
morehButtonNode.component = moreComponent
|
||||
moreButtonNode = current
|
||||
moreButtonNode.component = moreComponent
|
||||
} else {
|
||||
morehButtonNode = BarComponentHostNode(component: moreComponent, size: barButtonSize)
|
||||
self.moreBarButtonNode = morehButtonNode
|
||||
self.navigationItem.rightBarButtonItem = UIBarButtonItem(customDisplayNode: morehButtonNode)
|
||||
moreButtonNode = BarComponentHostNode(component: moreComponent, size: barButtonSize)
|
||||
self.moreBarButtonNode = moreButtonNode
|
||||
self.navigationItem.rightBarButtonItem = UIBarButtonItem(customDisplayNode: moreButtonNode)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -4181,7 +4181,16 @@ public func standaloneWebAppController(
|
|||
getSourceRect: (() -> CGRect?)? = nil,
|
||||
verifyAgeCompletion: ((Int) -> Void)? = nil
|
||||
) -> ViewController {
|
||||
let controller = AttachmentController(context: context, updatedPresentationData: updatedPresentationData, chatLocation: .peer(id: params.peerId), buttons: [.standalone], initialButton: .standalone, fromMenu: params.source == .menu, hasTextInput: false, isFullSize: params.fullSize, makeEntityInputView: {
|
||||
let controller = AttachmentController(
|
||||
context: context,
|
||||
updatedPresentationData: updatedPresentationData,
|
||||
chatLocation: .peer(id: params.peerId),
|
||||
buttons: [.standalone],
|
||||
initialButton: .standalone,
|
||||
fromMenu: params.source == .menu,
|
||||
hasTextInput: false,
|
||||
isFullSize: params.fullSize,
|
||||
makeEntityInputView: {
|
||||
return nil
|
||||
})
|
||||
controller.requestController = { _, present in
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue