macos and other stuff

This commit is contained in:
Mikhail Filimonov
2025-02-17 12:41:04 +02:00
parent af00fd8e28
commit 39e8c7bb2e
4 changed files with 66 additions and 0 deletions

View File

@@ -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? {