mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-16 19:30:29 +00:00
distinctUntilChanged for preloadManager [skip ci]
This commit is contained in:
parent
8bb7699a65
commit
015d3de3a5
@ -286,7 +286,7 @@ public final class AccountViewTracker {
|
||||
|
||||
self.historyViewStateValidationContexts = HistoryViewStateValidationContexts(queue: self.queue, postbox: account.postbox, network: account.network, accountPeerId: account.peerId)
|
||||
|
||||
self.chatHistoryPreloadManager = ChatHistoryPreloadManager(postbox: account.postbox, network: account.network, accountPeerId: account.peerId, networkState: account.networkState, preloadItemsSignal: self.chatListPreloadItems.get())
|
||||
self.chatHistoryPreloadManager = ChatHistoryPreloadManager(postbox: account.postbox, network: account.network, accountPeerId: account.peerId, networkState: account.networkState, preloadItemsSignal: self.chatListPreloadItems.get() |> distinctUntilChanged)
|
||||
|
||||
self.externallyUpdatedPeerIdDisposable.set((account.stateManager.externallyUpdatedPeerIds
|
||||
|> deliverOn(self.queue)).start(next: { [weak self] peerIds in
|
||||
|
||||
@ -234,7 +234,7 @@ private final class AdditionalPreloadPeerIdsContext {
|
||||
}
|
||||
}
|
||||
|
||||
public struct ChatHistoryPreloadItem {
|
||||
public struct ChatHistoryPreloadItem : Equatable {
|
||||
public let index: ChatListIndex
|
||||
public let isMuted: Bool
|
||||
public let hasUnread: Bool
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user