mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-11-07 09:20:08 +00:00
Fix build
This commit is contained in:
parent
8112d11896
commit
7274f30c33
@ -310,6 +310,7 @@ func deleteAccountDataController(context: AccountContext, mode: DeleteAccountDat
|
||||
}
|
||||
}
|
||||
|
||||
var secondaryActionDisabled = false
|
||||
let signal = combineLatest(queue: .mainQueue(),
|
||||
context.sharedContext.presentationData,
|
||||
peers,
|
||||
@ -342,7 +343,10 @@ func deleteAccountDataController(context: AccountContext, mode: DeleteAccountDat
|
||||
let footerItem = DeleteAccountFooterItem(theme: presentationData.theme, title: buttonTitle, secondaryTitle: presentationData.strings.DeleteAccount_Continue, action: {
|
||||
cancelImpl()
|
||||
}, secondaryAction: {
|
||||
if !secondaryActionDisabled {
|
||||
secondaryActionDisabled = true
|
||||
proceedImpl?()
|
||||
}
|
||||
})
|
||||
|
||||
let controllerState = ItemListControllerState(presentationData: ItemListPresentationData(presentationData), title: .text(presentationData.strings.DeleteAccount_DeleteMyAccountTitle), leftNavigationButton: leftNavigationButton, rightNavigationButton: rightNavigationButton, backNavigationButton: ItemListBackButton(title: presentationData.strings.Common_Back))
|
||||
@ -466,7 +470,7 @@ func deleteAccountDataController(context: AccountContext, mode: DeleteAccountDat
|
||||
let presentGlobalController = context.sharedContext.presentGlobalController
|
||||
let _ = logoutFromAccount(id: accountId, accountManager: accountManager, alreadyLoggedOutRemotely: false).start(completed: {
|
||||
Queue.mainQueue().after(0.1) {
|
||||
presentGlobalController(UndoOverlayController(presentationData: presentationData, content: .info(title: nil, text: presentationData.strings.DeleteAccount_Success), elevatedLayout: false, animateInAsReplacement: false, action: { _ in return false }), nil)
|
||||
presentGlobalController(UndoOverlayController(presentationData: presentationData, content: .info(title: nil, text: presentationData.strings.DeleteAccount_Success), elevatedLayout: true, animateInAsReplacement: false, action: { _ in return false }), nil)
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user