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