mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 14:45:21 +00:00
[WIP] Star reactions
This commit is contained in:
@@ -530,6 +530,15 @@ public extension Message {
|
||||
var paidContent: TelegramMediaPaidContent? {
|
||||
return self.media.first(where: { $0 is TelegramMediaPaidContent }) as? TelegramMediaPaidContent
|
||||
}
|
||||
|
||||
var authorSignatureAttribute: AuthorSignatureMessageAttribute? {
|
||||
for attribute in self.attributes {
|
||||
if let attribute = attribute as? AuthorSignatureMessageAttribute {
|
||||
return attribute
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
public extension Message {
|
||||
|
||||
Reference in New Issue
Block a user