Various improvements

This commit is contained in:
Ilya Laktyushin
2023-07-15 02:38:57 +02:00
parent 2e6bc7f69d
commit ae60c2be8b
10 changed files with 113 additions and 21 deletions

View File

@@ -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: