Add pinch-to-zoom for attached media

This commit is contained in:
Ilya Laktyushin
2024-01-25 14:45:23 +04:00
parent ce83d7510f
commit 02e7d5bf99

View File

@@ -1152,6 +1152,12 @@ public final class ChatMessageAttachedContentNode: ASDisplayNode {
self.contentMedia?.removeFromSupernode()
self.contentMedia = contentMedia
contentMedia.activatePinch = { [weak controllerInteraction] sourceNode in
guard let controllerInteraction else {
return
}
controllerInteraction.activateMessagePinch(sourceNode)
}
contentMedia.activateLocalContent = { [weak self] mode in
guard let self else {
return