mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +00:00
Fix unintended state sharing
This commit is contained in:
@@ -1436,11 +1436,10 @@ public final class AnimationCacheImpl: AnimationCache {
|
||||
|
||||
let _ = generateFirstFrameFromItem(currentQueue: queue, itemPath: itemFirstFramePath, animationItemPath: itemPath, allocateTempFile: allocateTempFile)
|
||||
|
||||
guard let item = try? loadItem(path: itemPath) else {
|
||||
return
|
||||
}
|
||||
|
||||
for f in itemContext.subscribers.copyItems() {
|
||||
guard let item = try? loadItem(path: itemPath) else {
|
||||
continue
|
||||
}
|
||||
f(AnimationCacheItemResult(item: item, isFinal: true))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user