mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Reaction improvements
This commit is contained in:
@@ -177,6 +177,7 @@ public final class AccountStateManager {
|
||||
private let appliedQtsDisposable = MetaDisposable()
|
||||
|
||||
var updateConfigRequested: (() -> Void)?
|
||||
var isPremiumUpdated: (() -> Void)?
|
||||
|
||||
init(
|
||||
accountPeerId: PeerId,
|
||||
@@ -785,6 +786,10 @@ public final class AccountStateManager {
|
||||
if events.updateConfig {
|
||||
self.updateConfigRequested?()
|
||||
}
|
||||
|
||||
if events.isPremiumUpdated {
|
||||
self.isPremiumUpdated?()
|
||||
}
|
||||
case let .pollCompletion(pollId, preMessageIds, preSubscribers):
|
||||
if self.operations.count > 1 {
|
||||
self.operations.removeFirst()
|
||||
|
||||
Reference in New Issue
Block a user