Various fixes

This commit is contained in:
Ilya Laktyushin
2021-03-01 18:19:12 +04:00
parent c767cc94e0
commit ebd41831c1
4 changed files with 8 additions and 5 deletions

View File

@@ -892,7 +892,7 @@ func contextMenuForChatPresentationInterfaceState(chatPresentationInterfaceState
}
var clearCacheAsDelete = false
if message.id.peerId.namespace == Namespaces.Peer.CloudChannel && !isMigrated {
if let channel = message.peers[message.id.peerId] as? TelegramChannel, case .broadcast = channel.info, !isMigrated {
var views: Int = 0
for attribute in message.attributes {
if let attribute = attribute as? ViewCountMessageAttribute {