mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
Fix decoding
This commit is contained in:
parent
e85f49282d
commit
2a06b2dede
1 changed files with 3 additions and 0 deletions
|
|
@ -61,6 +61,9 @@ final class AdditionalChatListItemsTable: Table {
|
|||
var items: [AdditionalChatListItem] = []
|
||||
self.valueBox.range(self.table, start: self.lowerBound(), end: self.upperBound(), values: { key, value in
|
||||
assert(key.getInt32(0) == Int32(items.count))
|
||||
if value.length <= 8 {
|
||||
return true
|
||||
}
|
||||
if let decoded = PostboxDecoder(buffer: value).decodeRootObject() as? AdditionalChatListItem {
|
||||
items.append(decoded)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue