mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Refactoring
This commit is contained in:
@@ -222,7 +222,7 @@ private func setCachedAttachMenuBots(transaction: Transaction, attachMenuBots: A
|
||||
|
||||
let entryId = ItemCacheEntryId(collectionId: Namespaces.CachedItemCollection.attachMenuBots, key: key)
|
||||
if let entry = CodableEntry(attachMenuBots) {
|
||||
transaction.putItemCacheEntry(id: entryId, entry: entry, collectionSpec: ItemCacheCollectionSpec(lowWaterItemCount: 10, highWaterItemCount: 10))
|
||||
transaction.putItemCacheEntry(id: entryId, entry: entry)
|
||||
} else {
|
||||
transaction.removeItemCacheEntry(id: entryId)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user