mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Update submodules
This commit is contained in:
parent
d8d1365496
commit
672321b42e
@ -698,10 +698,20 @@ final class AuthorizedApplicationContext {
|
||||
|
||||
self.displayAlertsDisposable = (context.account.stateManager.displayAlerts
|
||||
|> deliverOnMainQueue).start(next: { [weak self] alerts in
|
||||
if let strongSelf = self{
|
||||
for text in alerts {
|
||||
if let strongSelf = self {
|
||||
for (text, isDropAuth) in alerts {
|
||||
let presentationData = strongSelf.context.sharedContext.currentPresentationData.with { $0 }
|
||||
let controller = textAlertController(context: strongSelf.context, title: nil, text: text, actions: [TextAlertAction(type: .defaultAction, title: presentationData.strings.Common_OK, action: {})])
|
||||
let actions: [TextAlertAction]
|
||||
if isDropAuth {
|
||||
actions = [TextAlertAction(type: .genericAction, title: presentationData.strings.Common_Cancel, action: {}), TextAlertAction(type: .genericAction, title: presentationData.strings.LogoutOptions_LogOut, action: {
|
||||
if let strongSelf = self {
|
||||
let _ = logoutFromAccount(id: strongSelf.context.account.id, accountManager: strongSelf.context.sharedContext.accountManager).start()
|
||||
}
|
||||
})]
|
||||
} else {
|
||||
actions = [TextAlertAction(type: .defaultAction, title: presentationData.strings.Common_OK, action: {})]
|
||||
}
|
||||
let controller = textAlertController(context: strongSelf.context, title: nil, text: text, actions: actions)
|
||||
(strongSelf.rootController.viewControllers.last as? ViewController)?.present(controller, in: .window(.root))
|
||||
}
|
||||
}
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit eca5668fc9834be348e65edde3f4ec07eeffef0c
|
||||
Subproject commit a19e86b883253356228cd6aa0cb3162b3c2bb61a
|
@ -1 +1 @@
|
||||
Subproject commit fdcc098f8050834dd936f53a4476ac529abe6a58
|
||||
Subproject commit 6961ceda3746792e459cd32565228d372e63df93
|
@ -1 +1 @@
|
||||
Subproject commit 44ccb031eb2ee52628e6f2710a178bdb4f3041b5
|
||||
Subproject commit 6b34f748d7e5c788aeeacae7863b1ed8b2e8307a
|
Loading…
x
Reference in New Issue
Block a user