mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Various improvements
This commit is contained in:
@@ -154,6 +154,15 @@ public extension Peer {
|
||||
}
|
||||
}
|
||||
|
||||
var isPremium: Bool {
|
||||
switch self {
|
||||
case let user as TelegramUser:
|
||||
return user.flags.contains(.isPremium)
|
||||
default:
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
var isCopyProtectionEnabled: Bool {
|
||||
switch self {
|
||||
case let group as TelegramGroup:
|
||||
|
||||
Reference in New Issue
Block a user