mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-02 00:17:02 +00:00
Don't display animated sticker packs in image editor
This commit is contained in:
parent
e83237e97f
commit
ed2e37b83c
@ -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)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user