Serialize sticker pack addition

This commit is contained in:
Ali
2020-04-15 00:52:22 +04:00
parent 7f17b1b22d
commit f0c1f3ff3e
9 changed files with 376 additions and 262 deletions

View File

@@ -201,7 +201,7 @@ private func chatMediaInputPanelEntries(view: ItemCollectionsView, savedStickers
}
var index = 0
for (_, info, item) in view.collectionInfos {
if let info = info as? StickerPackCollectionInfo {
if let info = info as? StickerPackCollectionInfo, item != nil {
entries.append(.stickerPack(index: index, info: info, topItem: item as? StickerPackItem, theme: theme))
index += 1
}