has reactions

This commit is contained in:
overtake 2021-12-16 22:17:06 +04:00
parent d8ec49897d
commit 59ae6e0926

View File

@ -322,6 +322,14 @@ public extension Message {
}
return nil
}
var hasReactions: Bool {
for attribute in self.attributes {
if let attribute = attribute as? ReactionsMessageAttribute {
return !attribute.reactions.isEmpty
}
}
return false
}
}
public func _internal_parseMediaAttachment(data: Data) -> Media? {