mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 14:45:21 +00:00
Refactoring
This commit is contained in:
@@ -117,11 +117,10 @@ class ContactMultiselectionControllerImpl: ViewController, ContactMultiselection
|
||||
}
|
||||
})
|
||||
|
||||
self.limitsConfigurationDisposable = (context.account.postbox.transaction { transaction -> LimitsConfiguration in
|
||||
return currentLimitsConfiguration(transaction: transaction)
|
||||
} |> deliverOnMainQueue).start(next: { [weak self] value in
|
||||
self.limitsConfigurationDisposable = (context.engine.data.get(TelegramEngine.EngineData.Item.Configuration.Limits())
|
||||
|> deliverOnMainQueue).start(next: { [weak self] value in
|
||||
if let strongSelf = self {
|
||||
strongSelf.limitsConfiguration = value
|
||||
strongSelf.limitsConfiguration = value._asLimits()
|
||||
strongSelf.updateTitle()
|
||||
strongSelf._limitsReady.set(.single(true))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user