mirror of
https://github.com/element-hq/element-android
synced 2024-11-24 10:25:35 +03:00
keyword-spacing fix + wildcard-imports fix
This commit is contained in:
parent
4451b682b1
commit
9d96f90e49
2 changed files with 6 additions and 2 deletions
|
@ -18,7 +18,11 @@ package org.matrix.android.sdk.internal.auth.registration
|
|||
|
||||
import kotlinx.coroutines.delay
|
||||
import org.matrix.android.sdk.api.auth.data.LoginFlowTypes
|
||||
import org.matrix.android.sdk.api.auth.registration.*
|
||||
import org.matrix.android.sdk.api.auth.registration.RegisterThreePid
|
||||
import org.matrix.android.sdk.api.auth.registration.RegistrationAvailability
|
||||
import org.matrix.android.sdk.api.auth.registration.RegistrationResult
|
||||
import org.matrix.android.sdk.api.auth.registration.RegistrationWizard
|
||||
import org.matrix.android.sdk.api.auth.registration.toFlowResult
|
||||
import org.matrix.android.sdk.api.failure.Failure
|
||||
import org.matrix.android.sdk.api.failure.Failure.RegistrationFlowError
|
||||
import org.matrix.android.sdk.internal.auth.AuthAPI
|
||||
|
|
|
@ -30,7 +30,7 @@ internal class RegisterAvailableTask(private val authAPI: AuthAPI) : Task<String
|
|||
authAPI.registerAvailable(params)
|
||||
}
|
||||
} catch (exception: Throwable) {
|
||||
if(exception.isRegistrationAvailabilityError()) {
|
||||
if (exception.isRegistrationAvailabilityError()) {
|
||||
return RegistrationAvailability.NotAvailable(exception as Failure.ServerError)
|
||||
} else {
|
||||
throw exception
|
||||
|
|
Loading…
Reference in a new issue