mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-16 19:30:29 +00:00
has reactions
This commit is contained in:
parent
d8ec49897d
commit
59ae6e0926
@ -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? {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user