mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Reaction improvements
This commit is contained in:
@@ -322,6 +322,17 @@ public extension Message {
|
||||
}
|
||||
return nil
|
||||
}
|
||||
var effectiveReactions: [MessageReaction]? {
|
||||
if !self.hasReactions {
|
||||
return nil
|
||||
}
|
||||
|
||||
if let result = mergedMessageReactions(attributes: self.attributes) {
|
||||
return result.reactions
|
||||
} else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
var hasReactions: Bool {
|
||||
for attribute in self.attributes {
|
||||
if let attribute = attribute as? ReactionsMessageAttribute {
|
||||
|
||||
Reference in New Issue
Block a user