- fix sticker packs cache [skip ci]

This commit is contained in:
overtake 2020-05-05 16:27:12 +04:00
parent b5d30cc326
commit e2091d409f

View File

@ -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)