Don't display animated sticker packs in image editor

This commit is contained in:
Peter 2019-07-01 23:41:31 +03:00
parent e83237e97f
commit ed2e37b83c

View File

@ -86,7 +86,7 @@ func legacyComponentsStickers(postbox: Postbox, namespace: Int32) -> SSignal {
let stickerPacks = NSMutableArray() let stickerPacks = NSMutableArray()
for (id, info, _) in view.collectionInfos { for (id, info, _) in view.collectionInfos {
if let info = info as? StickerPackCollectionInfo { if let info = info as? StickerPackCollectionInfo, !info.flags.contains(.isAnimated) {
let pack = TGStickerPack(packReference: TGStickerPackIdReference(), title: info.title, stickerAssociations: [], documents: stickerPackDocuments[id] ?? [], packHash: info.hash, hidden: false, isMask: true, isFeatured: false, installedDate: 0)! let pack = TGStickerPack(packReference: TGStickerPackIdReference(), title: info.title, stickerAssociations: [], documents: stickerPackDocuments[id] ?? [], packHash: info.hash, hidden: false, isMask: true, isFeatured: false, installedDate: 0)!
stickerPacks.add(pack) stickerPacks.add(pack)
} }