From de1e98a33cb020fc096590ce317c29597f6462c5 Mon Sep 17 00:00:00 2001 From: Ilya Laktyushin Date: Fri, 7 Aug 2020 21:33:22 +0300 Subject: [PATCH] Disable message stats --- submodules/TelegramUI/Sources/ChatController.swift | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/submodules/TelegramUI/Sources/ChatController.swift b/submodules/TelegramUI/Sources/ChatController.swift index dc004c8781..cf7c6800f9 100644 --- a/submodules/TelegramUI/Sources/ChatController.swift +++ b/submodules/TelegramUI/Sources/ChatController.swift @@ -1175,11 +1175,7 @@ public final class ChatControllerImpl: TelegramBaseController, ChatController, G break } } - let shareController = ShareController(context: strongSelf.context, subject: .messages(messages), openStats: { [weak self] in - if let strongSelf = self, let cachedChannelData = strongSelf.peerView?.cachedData as? CachedChannelData { - strongSelf.push(messageStatsController(context: strongSelf.context, messageId: id, cachedPeerData: cachedChannelData)) - } - }, shares: shares) + let shareController = ShareController(context: strongSelf.context, subject: .messages(messages)) shareController.dismissed = { shared in if shared { self?.commitPurposefulAction()