From 2bbf1099351347cbb663137a7c4dfb122df962a2 Mon Sep 17 00:00:00 2001 From: Ilya Laktyushin Date: Sun, 6 Oct 2019 19:41:00 +0300 Subject: [PATCH] Don't show "Delete for..." when deleting multiple scheduled messages --- .../TelegramUI/ChatInterfaceStateContextMenus.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/submodules/TelegramUI/TelegramUI/ChatInterfaceStateContextMenus.swift b/submodules/TelegramUI/TelegramUI/ChatInterfaceStateContextMenus.swift index 908a150212..6cd13694e8 100644 --- a/submodules/TelegramUI/TelegramUI/ChatInterfaceStateContextMenus.swift +++ b/submodules/TelegramUI/TelegramUI/ChatInterfaceStateContextMenus.swift @@ -775,14 +775,14 @@ func chatAvailableMessageActionsImpl(postbox: Postbox, accountPeerId: PeerId, me } if let peer = transaction.getPeer(id.peerId), let channel = peer as? TelegramChannel { if !message.flags.contains(.Incoming) { - optionsMap[id]!.insert(.deleteGlobally) + optionsMap[id]!.insert(.deleteLocally) } else { if channel.hasPermission(.deleteAllMessages) { - optionsMap[id]!.insert(.deleteGlobally) + optionsMap[id]!.insert(.deleteLocally) } } } else { - optionsMap[id]!.insert(.deleteGlobally) + optionsMap[id]!.insert(.deleteLocally) } } else if id.peerId == accountPeerId { if !(message.flags.isSending || message.flags.contains(.Failed)) {