Install default packs async.
This commit is contained in:
parent
a0ee6deb78
commit
43d9ef8ce0
@ -422,10 +422,12 @@ public class StickerManager: NSObject {
|
||||
}
|
||||
|
||||
private class func tryToDownloadDefaultStickerPacks(shouldInstall: Bool) {
|
||||
tryToDownloadStickerPacks(stickerPacks: DefaultStickerPack.packsToAutoInstall,
|
||||
installMode: .installIfUnsaved)
|
||||
tryToDownloadStickerPacks(stickerPacks: DefaultStickerPack.packsToNotAutoInstall,
|
||||
installMode: .doNotInstall)
|
||||
DispatchQueue.global().async {
|
||||
self.tryToDownloadStickerPacks(stickerPacks: DefaultStickerPack.packsToAutoInstall,
|
||||
installMode: .installIfUnsaved)
|
||||
self.tryToDownloadStickerPacks(stickerPacks: DefaultStickerPack.packsToNotAutoInstall,
|
||||
installMode: .doNotInstall)
|
||||
}
|
||||
}
|
||||
|
||||
@objc
|
||||
|
||||
Loading…
Reference in New Issue
Block a user