mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Support updateConfig
This commit is contained in:
@@ -176,6 +176,8 @@ public final class AccountStateManager {
|
||||
private let appliedQtsPromise = Promise<Int32?>(nil)
|
||||
private let appliedQtsDisposable = MetaDisposable()
|
||||
|
||||
var updateConfigRequested: (() -> Void)?
|
||||
|
||||
init(
|
||||
accountPeerId: PeerId,
|
||||
accountManager: AccountManager<TelegramAccountManagerTypes>,
|
||||
@@ -780,6 +782,10 @@ public final class AccountStateManager {
|
||||
if !events.deletedMessageIds.isEmpty {
|
||||
self.deletedMessagesPipe.putNext(events.deletedMessageIds)
|
||||
}
|
||||
|
||||
if events.updateConfig {
|
||||
self.updateConfigRequested?()
|
||||
}
|
||||
case let .pollCompletion(pollId, preMessageIds, preSubscribers):
|
||||
if self.operations.count > 1 {
|
||||
self.operations.removeFirst()
|
||||
|
||||
Reference in New Issue
Block a user