[skip ci]

This commit is contained in:
overtake 2020-12-07 14:46:51 +04:00
parent c13586b333
commit 1c57a10554

View File

@ -39,7 +39,7 @@ func cacheStickerPack(transaction: Transaction, info: StickerPackCollectionInfo,
public func cachedStickerPack(postbox: Postbox, network: Network, reference: StickerPackReference, forceRemote: Bool) -> Signal<CachedStickerPackResult, NoError> {
return postbox.transaction { transaction -> CachedStickerPackResult? in
if let (info, items, local) = cachedStickerPack(transaction: transaction, reference: reference) {
if local && !forceRemote {
if local {
return .result(info, items, true)
}
}