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