mirror of
https://github.com/element-hq/element-android
synced 2024-11-24 10:25:35 +03:00
ktlint
This commit is contained in:
parent
fb46a14172
commit
9a628c7b5d
10 changed files with 6 additions and 18 deletions
|
@ -21,5 +21,4 @@ import im.vector.matrix.android.api.auth.data.HomeServerConnectionConfig
|
|||
interface RegistrationService {
|
||||
|
||||
fun getOrCreateRegistrationWizard(homeServerConnectionConfig: HomeServerConnectionConfig): RegistrationWizard
|
||||
|
||||
}
|
||||
|
|
|
@ -27,5 +27,4 @@ interface RegistrationWizard {
|
|||
fun performReCaptcha(response: String, callback: MatrixCallback<Session>): Cancelable
|
||||
|
||||
// TODO Add other method here
|
||||
|
||||
}
|
||||
|
|
|
@ -18,7 +18,6 @@ package im.vector.matrix.android.api.auth.registration
|
|||
|
||||
import im.vector.matrix.android.api.util.JsonDict
|
||||
|
||||
|
||||
sealed class Stage(open val mandatory: Boolean) {
|
||||
|
||||
// m.login.password
|
||||
|
@ -45,7 +44,4 @@ sealed class Stage(open val mandatory: Boolean) {
|
|||
data class Other(override val mandatory: Boolean, val type: String, val params: JsonDict?) : Stage(mandatory)
|
||||
}
|
||||
|
||||
|
||||
class TermPolicies {
|
||||
|
||||
}
|
||||
class TermPolicies
|
||||
|
|
|
@ -30,5 +30,4 @@ interface Cancelable {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
object NoOpCancellable : Cancelable
|
||||
|
|
|
@ -144,10 +144,10 @@ internal class DefaultAuthenticator @Inject constructor(@Unauthenticated
|
|||
private fun resetPasswordInternal(/*homeServerConnectionConfig: HomeServerConnectionConfig, email: String, newPassword: String*/) {
|
||||
// TODO
|
||||
error("Not implemented")
|
||||
//val authAPI = buildAuthAPI(homeServerConnectionConfig)
|
||||
//executeRequest<LoginFlowResponse> {
|
||||
// val authAPI = buildAuthAPI(homeServerConnectionConfig)
|
||||
// executeRequest<LoginFlowResponse> {
|
||||
// apiCall = authAPI.getLoginFlows()
|
||||
//}
|
||||
// }
|
||||
}
|
||||
|
||||
private fun buildAuthAPI(homeServerConnectionConfig: HomeServerConnectionConfig): AuthAPI {
|
||||
|
|
|
@ -72,7 +72,6 @@ internal class DefaultRegistrationWizard(private val homeServerConnectionConfig:
|
|||
), callback)
|
||||
}
|
||||
|
||||
|
||||
private fun performRegistrationRequest(registrationParams: RegistrationParams, callback: MatrixCallback<Session>): Cancelable {
|
||||
val job = GlobalScope.launch(coroutineDispatchers.main) {
|
||||
val result = runCatching {
|
||||
|
|
|
@ -115,7 +115,6 @@ class LoginServerUrlFormFragment @Inject constructor(
|
|||
if (serverUrl.startsWith("http").not()) {
|
||||
serverUrl = "https://$serverUrl"
|
||||
loginServerUrlFormHomeServerUrl.setText(serverUrl)
|
||||
|
||||
}
|
||||
loginViewModel.handle(LoginAction.UpdateHomeServer(serverUrl))
|
||||
}
|
||||
|
|
|
@ -16,7 +16,6 @@
|
|||
|
||||
package im.vector.riotx.features.login
|
||||
|
||||
|
||||
import com.airbnb.mvrx.*
|
||||
|
||||
data class LoginViewState(
|
||||
|
@ -25,7 +24,6 @@ data class LoginViewState(
|
|||
val asyncResetPassword: Async<Unit> = Uninitialized
|
||||
) : MvRxState {
|
||||
|
||||
|
||||
fun isLoading(): Boolean {
|
||||
// TODO Add other async here
|
||||
return asyncLoginAction is Loading
|
||||
|
@ -38,4 +36,3 @@ data class LoginViewState(
|
|||
return asyncLoginAction is Success
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue