Comments [WIP]

This commit is contained in:
Ali
2020-10-02 17:14:59 +01:00
parent 00642ecbe7
commit d94d771feb
23 changed files with 1075 additions and 919 deletions

View File

@@ -277,7 +277,11 @@ final class ChatMessageInteractiveFileNode: ASDisplayNode {
var consumableContentIcon: UIImage?
for attribute in message.attributes {
if let attribute = attribute as? ConsumableContentMessageAttribute {
if !attribute.consumed {
var isConsumed = attribute.consumed
if let channel = message.peers[message.id.peerId] as? TelegramChannel, case .broadcast = channel.info {
isConsumed = true
}
if !isConsumed {
if incoming {
consumableContentIcon = PresentationResourcesChat.chatBubbleConsumableContentIncomingIcon(presentationData.theme.theme)
} else {