Merge commit '9b1798e92be843f2f959aaa35cde6f71a115107a'

This commit is contained in:
Ali 2020-12-04 10:57:56 +00:00
commit 8ffe12999f

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 {
if local && !forceRemote {
return .result(info, items, true)
}
}