mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +00:00
Merge commit '5d9d794f159b6056ba49c819aabe0322e5598be2'
This commit is contained in:
@@ -380,7 +380,7 @@ public extension Message {
|
||||
}
|
||||
|
||||
func isSensitiveContent(platform: String) -> Bool {
|
||||
if let rule = self.restrictedContentAttribute?.rules.first(where: { $0.isSensitive }) {
|
||||
if let rule = self.restrictedContentAttribute?.rules.first(where: { $0.reason == "sensitive" }) {
|
||||
if rule.platform == "all" || rule.platform == platform {
|
||||
return true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user