mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-03 21:16:35 +00:00
- fix sticker packs cache [skip ci]
This commit is contained in:
parent
b5d30cc326
commit
e2091d409f
@ -60,7 +60,7 @@ public func cachedStickerPack(postbox: Postbox, network: Network, reference: Sti
|
|||||||
if cached.hash != info.hash {
|
if cached.hash != info.hash {
|
||||||
return (current, true, previousHash)
|
return (current, true, previousHash)
|
||||||
} else {
|
} else {
|
||||||
return (current, true, previousHash)
|
return (current, false, previousHash)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
return (.fetching, true, nil)
|
return (.fetching, true, nil)
|
||||||
@ -72,7 +72,7 @@ public func cachedStickerPack(postbox: Postbox, network: Network, reference: Sti
|
|||||||
if cached.hash != info.hash {
|
if cached.hash != info.hash {
|
||||||
return (current, true, previousHash)
|
return (current, true, previousHash)
|
||||||
} else {
|
} else {
|
||||||
return (current, true, previousHash)
|
return (current, false, previousHash)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
return (.fetching, true, nil)
|
return (.fetching, true, nil)
|
||||||
@ -86,7 +86,7 @@ public func cachedStickerPack(postbox: Postbox, network: Network, reference: Sti
|
|||||||
if cached.hash != info.hash {
|
if cached.hash != info.hash {
|
||||||
return (current, true, previousHash)
|
return (current, true, previousHash)
|
||||||
} else {
|
} else {
|
||||||
return (current, true, previousHash)
|
return (current, false, previousHash)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
return (.fetching, true, nil)
|
return (.fetching, true, nil)
|
||||||
@ -100,7 +100,7 @@ public func cachedStickerPack(postbox: Postbox, network: Network, reference: Sti
|
|||||||
if cached.hash != info.hash {
|
if cached.hash != info.hash {
|
||||||
return (current, true, previousHash)
|
return (current, true, previousHash)
|
||||||
} else {
|
} else {
|
||||||
return (current, true, previousHash)
|
return (current, false, previousHash)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
return (.fetching, true, nil)
|
return (.fetching, true, nil)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user