Add account deletion

This commit is contained in:
Ilya Laktyushin
2022-06-30 18:55:19 +03:00
parent 411b8682c1
commit 16d6010385
48 changed files with 3222 additions and 65 deletions

View File

@@ -486,7 +486,7 @@ final class AuthorizedApplicationContext {
}
let accountId = strongSelf.context.account.id
let accountManager = strongSelf.context.sharedContext.accountManager
let _ = (strongSelf.context.engine.auth.deleteAccount(reason: "GDPR")
let _ = (strongSelf.context.engine.auth.deleteAccount(reason: "GDPR", password: nil)
|> deliverOnMainQueue).start(error: { _ in
guard let strongSelf = self else {
return