Disable message stats

This commit is contained in:
Ilya Laktyushin 2020-08-07 21:33:22 +03:00
parent e750750ac1
commit de1e98a33c

View File

@ -1175,11 +1175,7 @@ public final class ChatControllerImpl: TelegramBaseController, ChatController, G
break break
} }
} }
let shareController = ShareController(context: strongSelf.context, subject: .messages(messages), openStats: { [weak self] in let shareController = ShareController(context: strongSelf.context, subject: .messages(messages))
if let strongSelf = self, let cachedChannelData = strongSelf.peerView?.cachedData as? CachedChannelData {
strongSelf.push(messageStatsController(context: strongSelf.context, messageId: id, cachedPeerData: cachedChannelData))
}
}, shares: shares)
shareController.dismissed = { shared in shareController.dismissed = { shared in
if shared { if shared {
self?.commitPurposefulAction() self?.commitPurposefulAction()