Video avatar fixes

This commit is contained in:
Ilya Laktyushin 2020-07-03 14:34:57 +03:00
parent 71fc6c67d6
commit 0a2b9ad3d1

View File

@ -346,6 +346,12 @@ final class PeerAvatarImageGalleryItemNode: ZoomableContentGalleryItemNode {
self.playVideoIfCentral()
} else if let videoNode = self.videoNode {
videoNode.pause()
if let startTimestamp = self.videoStartTimestamp {
videoNode.seek(startTimestamp)
} else {
videoNode.seek(0.0)
}
videoNode.isHidden = true
}
}
}