mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Merge branch 'master' into experimental-2
This commit is contained in:
@@ -291,3 +291,14 @@ public extension Message {
|
||||
}
|
||||
}
|
||||
|
||||
public extension Message {
|
||||
var adAttribute: AdMessageAttribute? {
|
||||
for attribute in self.attributes {
|
||||
if let attribute = attribute as? AdMessageAttribute {
|
||||
return attribute
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user