Serialization update

This commit is contained in:
Isaac
2025-02-14 19:11:58 +04:00
parent f370102e44
commit 6c4070eb52
98 changed files with 1332 additions and 759 deletions

View File

@@ -75,9 +75,10 @@ private final class PrefetchManagerInnerImpl {
let popularEmoji = ["\u{2764}", "👍", "👎", "😳", "😒", "🥳", "😡", "😮", "😂", "😘", "😍", "🙄", "😎"]
for emoji in popularEmoji {
if let sticker = animatedEmojiStickers[emoji] {
if let _ = account.postbox.mediaBox.completedResourcePath(sticker.file.resource) {
let stickerFile = sticker.file._parse()
if let _ = account.postbox.mediaBox.completedResourcePath(stickerFile.resource) {
} else {
stickerItems.append(.animatedEmojiSticker(sticker.file))
stickerItems.append(.animatedEmojiSticker(stickerFile))
}
}
}