mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
macos and other stuff
This commit is contained in:
parent
af00fd8e28
commit
39e8c7bb2e
4 changed files with 66 additions and 0 deletions
|
|
@ -470,6 +470,24 @@ public extension Message {
|
|||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
var derivedDataAttribute: DerivedDataMessageAttribute? {
|
||||
for attribute in self.attributes {
|
||||
if let attribute = attribute as? DerivedDataMessageAttribute {
|
||||
return attribute
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
var forwardVideoTimestampAttribute: ForwardVideoTimestampAttribute? {
|
||||
for attribute in self.attributes {
|
||||
if let attribute = attribute as? ForwardVideoTimestampAttribute {
|
||||
return attribute
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public extension Message {
|
||||
var reactionsAttribute: ReactionsMessageAttribute? {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue