mirror of
https://github.com/vector-im/element-android.git
synced 2024-11-16 02:05:06 +08:00
keyword-spacing fix + wildcard-imports fix
This commit is contained in:
parent
4451b682b1
commit
9d96f90e49
@ -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 New Issue
Block a user