mirror of
https://github.com/ichmagmaus111/ghostgram.git
synced 2026-08-23 14:22:30 +02:00
Update Ghostgram features
This commit is contained in:
@@ -385,6 +385,10 @@ public extension Message {
|
||||
return false
|
||||
}
|
||||
|
||||
return self.isCopyProtectedIgnoringBypass()
|
||||
}
|
||||
|
||||
func isCopyProtectedIgnoringBypass() -> Bool {
|
||||
if self.flags.contains(.CopyProtected) {
|
||||
return true
|
||||
} else if let group = self.peers[self.id.peerId] as? TelegramGroup, group.flags.contains(.copyProtectionEnabled) {
|
||||
|
||||
Reference in New Issue
Block a user