mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
Don't seek animated sticker if frame count is unknown
This commit is contained in:
parent
dc8a9f16a7
commit
8f74c6be76
1 changed files with 4 additions and 0 deletions
|
|
@ -622,6 +622,10 @@ public final class AnimatedStickerNode: ASDisplayNode {
|
|||
guard let frameSource = maybeFrameSource else {
|
||||
return
|
||||
}
|
||||
if frameSource.frameCount == 0 {
|
||||
return
|
||||
}
|
||||
|
||||
let frameQueue = QueueLocalObject<AnimatedStickerFrameQueue>(queue: queue, generate: {
|
||||
return AnimatedStickerFrameQueue(queue: queue, length: 1, source: frameSource)
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue