InvertMediaAttribute

This commit is contained in:
Mikhail Filimonov
2024-05-17 09:51:26 +04:00
parent 63c36a394e
commit c99ac31081
5 changed files with 27 additions and 17 deletions

View File

@@ -531,6 +531,14 @@ public extension Message {
}
return false
}
var invertMediaAttribute: InvertMediaMessageAttribute? {
for attribute in self.attributes {
if let attribute = attribute as? InvertMediaMessageAttribute {
return attribute
}
}
return nil
}
}
public extension Message {