mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-10-09 03:20:48 +00:00
Fix decoding
This commit is contained in:
parent
e85f49282d
commit
2a06b2dede
@ -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…
x
Reference in New Issue
Block a user