mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
[skip ci]
This commit is contained in:
parent
c13586b333
commit
1c57a10554
@ -39,7 +39,7 @@ func cacheStickerPack(transaction: Transaction, info: StickerPackCollectionInfo,
|
|||||||
public func cachedStickerPack(postbox: Postbox, network: Network, reference: StickerPackReference, forceRemote: Bool) -> Signal<CachedStickerPackResult, NoError> {
|
public func cachedStickerPack(postbox: Postbox, network: Network, reference: StickerPackReference, forceRemote: Bool) -> Signal<CachedStickerPackResult, NoError> {
|
||||||
return postbox.transaction { transaction -> CachedStickerPackResult? in
|
return postbox.transaction { transaction -> CachedStickerPackResult? in
|
||||||
if let (info, items, local) = cachedStickerPack(transaction: transaction, reference: reference) {
|
if let (info, items, local) = cachedStickerPack(transaction: transaction, reference: reference) {
|
||||||
if local && !forceRemote {
|
if local {
|
||||||
return .result(info, items, true)
|
return .result(info, items, true)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user