mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
14 lines
328 B
Swift
14 lines
328 B
Swift
import Foundation
|
|
import TelegramCore
|
|
|
|
public extension RestrictedContentMessageAttribute {
|
|
func platformText(platform: String) -> String? {
|
|
for rule in self.rules {
|
|
if rule.platform == "all" || rule.platform == "ios" {
|
|
return rule.text
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
}
|