mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Psa improvements
This commit is contained in:
@@ -363,7 +363,7 @@ final class MutableChatListView {
|
||||
self.additionalItems = items
|
||||
self.additionalItemIds = Set(items.map { $0.peerId })
|
||||
for item in items {
|
||||
if let entry = postbox.chatListTable.getStandalone(peerId: item.peerId, messageHistoryTable: postbox.messageHistoryTable) {
|
||||
if let entry = postbox.chatListTable.getStandalone(peerId: item.peerId, messageHistoryTable: postbox.messageHistoryTable, includeIfNoHistory: item.includeIfNoHistory) {
|
||||
self.additionalItemEntries.append(MutableChatListAdditionalItemEntry(
|
||||
entry: MutableChatListEntry(entry, cachedDataTable: postbox.cachedPeerDataTable, readStateTable: postbox.readStateTable, messageHistoryTable: postbox.messageHistoryTable),
|
||||
info: item
|
||||
@@ -534,7 +534,7 @@ final class MutableChatListView {
|
||||
if updateAdditionalItems {
|
||||
self.additionalItemEntries.removeAll()
|
||||
for item in self.additionalItems {
|
||||
if let entry = postbox.chatListTable.getStandalone(peerId: item.peerId, messageHistoryTable: postbox.messageHistoryTable) {
|
||||
if let entry = postbox.chatListTable.getStandalone(peerId: item.peerId, messageHistoryTable: postbox.messageHistoryTable, includeIfNoHistory: item.includeIfNoHistory) {
|
||||
self.additionalItemEntries.append(MutableChatListAdditionalItemEntry(
|
||||
entry: MutableChatListEntry(entry, cachedDataTable: postbox.cachedPeerDataTable, readStateTable: postbox.readStateTable, messageHistoryTable: postbox.messageHistoryTable),
|
||||
info: item
|
||||
|
||||
Reference in New Issue
Block a user