mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 12:07:55 +00:00
Adopt correct UIAA and session token passing usage as per spec.
This commit is contained in:
@@ -822,10 +822,9 @@ class ClientProxy: ClientProxyProtocol {
|
||||
LinkNewDeviceService(handler: client.newGrantLoginWithQrCodeHandler())
|
||||
}
|
||||
|
||||
func deactivateAccount(password: String?, eraseData: Bool) async -> Result<Void, ClientProxyError> {
|
||||
func deactivateAccount(password: String, eraseData: Bool) async -> Result<Void, ClientProxyError> {
|
||||
do {
|
||||
try await client.deactivateAccount(authData: password.map { .password(passwordDetails: .init(identifier: userID, password: $0)) },
|
||||
eraseData: eraseData)
|
||||
try await client.deactivateAccount(password: password, eraseData: eraseData)
|
||||
return .success(())
|
||||
} catch {
|
||||
return .failure(.sdkError(error))
|
||||
|
||||
@@ -247,7 +247,7 @@ protocol ClientProxyProtocol: AnyObject {
|
||||
|
||||
func linkNewDeviceService() -> LinkNewDeviceServiceProtocol
|
||||
|
||||
func deactivateAccount(password: String?, eraseData: Bool) async -> Result<Void, ClientProxyError>
|
||||
func deactivateAccount(password: String, eraseData: Bool) async -> Result<Void, ClientProxyError>
|
||||
|
||||
func logout() async
|
||||
|
||||
|
||||
Reference in New Issue
Block a user