mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +00:00
Rollback some changes
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user