Various fixes

This commit is contained in:
Ilya Laktyushin
2022-06-05 22:51:56 +04:00
parent c7e34e3e2d
commit fa620eecde
2 changed files with 2 additions and 2 deletions

View File

@@ -966,7 +966,7 @@ public final class WebAppController: ViewController, AttachmentContainable {
let attachMenuBot = attachMenuBots.first(where: { $0.peer.id == botId})
if let attachMenuBot = attachMenuBot, attachMenuBot.hasSettings {
if self?.url == nil, let attachMenuBot = attachMenuBot, attachMenuBot.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)
}, action: { [weak self] _, f in