mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 14:45:21 +00:00
Various improvements
This commit is contained in:
@@ -1934,6 +1934,16 @@ public final class WebAppController: ViewController, AttachmentContainable {
|
||||
|
||||
let attachMenuBot = attachMenuBots.first(where: { $0.peer.id == botId && !$0.flags.contains(.notActivated) })
|
||||
|
||||
// items.append(.action(ContextMenuActionItem(text: "Minimize", icon: { theme in
|
||||
// return generateTintedImage(image: UIImage(bundleImageName: "Chat/Context Menu/HideArchive"), color: theme.contextMenu.primaryColor)
|
||||
// }, action: { [weak self] c, _ in
|
||||
// c?.dismiss(completion: nil)
|
||||
//
|
||||
// if let self, let parentController = self.parentController(), let navigationController = self.getNavigationController() {
|
||||
// navigationController.minimizeViewController(parentController, animated: true)
|
||||
// }
|
||||
// })))
|
||||
|
||||
if hasSettings {
|
||||
items.append(.action(ContextMenuActionItem(text: presentationData.strings.WebApp_Settings, icon: { theme in
|
||||
return generateTintedImage(image: UIImage(bundleImageName: "Chat/Context Menu/Settings"), color: theme.contextMenu.primaryColor)
|
||||
@@ -2183,5 +2193,9 @@ public func standaloneWebAppController(
|
||||
controller.willDismiss = willDismiss
|
||||
controller.didDismiss = didDismiss
|
||||
controller.getSourceRect = getSourceRect
|
||||
controller.title = params.botName
|
||||
controller.shouldMinimizeOnSwipe = {
|
||||
return false
|
||||
}
|
||||
return controller
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user