From eef0891e96773e00228681d6e2904c2044c80a48 Mon Sep 17 00:00:00 2001 From: Ilya Laktyushin Date: Mon, 22 Nov 2021 01:10:51 +0400 Subject: [PATCH] Enabled capture prevention in forward-restricted chats --- .../TelegramUI/Sources/ChatMessageInteractiveMediaNode.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/submodules/TelegramUI/Sources/ChatMessageInteractiveMediaNode.swift b/submodules/TelegramUI/Sources/ChatMessageInteractiveMediaNode.swift index 22d17d348d..2d4a5a9e74 100644 --- a/submodules/TelegramUI/Sources/ChatMessageInteractiveMediaNode.swift +++ b/submodules/TelegramUI/Sources/ChatMessageInteractiveMediaNode.swift @@ -970,7 +970,7 @@ final class ChatMessageInteractiveMediaNode: ASDisplayNode, GalleryItemTransitio } if let updateImageSignal = updateImageSignal { - strongSelf.imageNode.captureProtected = message.id.peerId.namespace == Namespaces.Peer.SecretChat + strongSelf.imageNode.captureProtected = message.id.peerId.namespace == Namespaces.Peer.SecretChat || message.isCopyProtected() strongSelf.imageNode.setSignal(updateImageSignal(synchronousLoads, false), attemptSynchronously: synchronousLoads) var imageDimensions: CGSize?