diff --git a/submodules/TelegramUI/Components/Chat/ChatMessageInteractiveMediaNode/Sources/ChatMessageInteractiveMediaNode.swift b/submodules/TelegramUI/Components/Chat/ChatMessageInteractiveMediaNode/Sources/ChatMessageInteractiveMediaNode.swift index c705d9fa6c..5dda9dc5fc 100644 --- a/submodules/TelegramUI/Components/Chat/ChatMessageInteractiveMediaNode/Sources/ChatMessageInteractiveMediaNode.swift +++ b/submodules/TelegramUI/Components/Chat/ChatMessageInteractiveMediaNode/Sources/ChatMessageInteractiveMediaNode.swift @@ -1952,17 +1952,17 @@ public final class ChatMessageInteractiveMediaNode: ASDisplayNode, GalleryItemTr videoNode.isUserInteractionEnabled = false var firstTime = true videoNode.ownsContentNodeUpdated = { [weak self] owns in - if let strongSelf = self { + if let strongSelf = self, let videoNode = strongSelf.videoNode { if firstTime { firstTime = false if startFromSavedPosition, let videoTimestamp { videoNode.seek(Double(videoTimestamp)) } } - strongSelf.videoNode?.isHidden = !owns + videoNode.isHidden = !owns if owns { - strongSelf.videoNode?.setBaseRate(1.0) - strongSelf.videoNode?.continuePlayingWithoutSound() + videoNode.setBaseRate(1.0) + videoNode.continuePlayingWithoutSound() } } }