Fix emoji playback

This commit is contained in:
Ali 2022-06-06 19:27:28 +04:00
parent b849968275
commit 3f38a9d64a
2 changed files with 6 additions and 2 deletions

View file

@ -290,7 +290,7 @@ public final class AnimatedStickerNode: ASDisplayNode {
if let directData = try? Data(contentsOf: URL(fileURLWithPath: path), options: [.mappedRead]) {
strongSelf.directData = (directData, path, width, height, cachePathPrefix, source.fitzModifier, source.isVideo)
}
if case let .still(position) = playbackMode {
if case let .still(position) = strongSelf.playbackMode {
strongSelf.seekTo(position)
} else if strongSelf.isPlaying || strongSelf.autoplay {
if strongSelf.autoplay {