Implement forward and copy restriction

This commit is contained in:
Ilya Laktyushin
2021-11-03 13:35:57 +04:00
parent 7b3d1c6f59
commit 003d263ebd
6 changed files with 89 additions and 62 deletions

View File

@@ -576,7 +576,7 @@ final class ChatItemGalleryFooterContentNode: GalleryFooterContentNode, UIScroll
self.currentMessage = message
let canDelete: Bool
var canShare = !message.containsSecretMedia
var canShare = !message.containsSecretMedia && !message.isCopyProtected()
var canFullscreen = false