From 3381933afdc321babedb202b2a58aa47f33386db Mon Sep 17 00:00:00 2001 From: Ali <> Date: Fri, 17 Jan 2020 14:20:33 +0400 Subject: [PATCH] Disable polls in saved messages --- .../LegacyMediaPickerUI/Sources/LegacyAttachmentMenu.swift | 2 -- 1 file changed, 2 deletions(-) diff --git a/submodules/LegacyMediaPickerUI/Sources/LegacyAttachmentMenu.swift b/submodules/LegacyMediaPickerUI/Sources/LegacyAttachmentMenu.swift index 536ad692a0..f55097b4a2 100644 --- a/submodules/LegacyMediaPickerUI/Sources/LegacyAttachmentMenu.swift +++ b/submodules/LegacyMediaPickerUI/Sources/LegacyAttachmentMenu.swift @@ -301,8 +301,6 @@ public func legacyAttachmentMenu(context: AccountContext, peer: Peer, editMediaO peerSupportsPolls = true } else if let user = peer as? TelegramUser, let _ = user.botInfo { peerSupportsPolls = true - } else if peer.id == context.account.peerId { - peerSupportsPolls = true } if peerSupportsPolls && canSendMessagesToPeer(peer) && canSendPolls { let pollItem = TGMenuSheetButtonItemView(title: presentationData.strings.AttachmentMenu_Poll, type: TGMenuSheetButtonTypeDefault, fontSize: fontSize, action: { [weak controller] in