Rollback some changes

This commit is contained in:
Ilya Laktyushin
2020-10-08 22:09:15 +04:00
parent 8aee2109df
commit 92c71c8d8d
2 changed files with 2 additions and 33 deletions

View File

@@ -809,22 +809,6 @@ func contextMenuForChatPresentationIntefaceState(chatPresentationInterfaceState:
var clearCacheAsDelete = false
if message.id.peerId.namespace == Namespaces.Peer.CloudChannel {
var views: Int = 0
for attribute in message.attributes {
if let attribute = attribute as? ViewCountMessageAttribute {
views = attribute.count
}
}
if views >= 100 {
actions.append(.action(ContextMenuActionItem(text: chatPresentationInterfaceState.strings.Conversation_ContextViewStats, icon: { theme in
return generateTintedImage(image: UIImage(bundleImageName: "Chat/Context Menu/Statistics"), color: theme.actionSheet.primaryTextColor)
}, action: { c, _ in
c.dismiss(completion: {
controllerInteraction.openMessageStats(messages[0].id)
})
})))
}
clearCacheAsDelete = true
}