diff --git a/features/login/impl/src/main/kotlin/io/element/android/features/login/impl/root/LoginRootPresenter.kt b/features/login/impl/src/main/kotlin/io/element/android/features/login/impl/root/LoginRootPresenter.kt index 46a42ad24c..c9a75365f1 100644 --- a/features/login/impl/src/main/kotlin/io/element/android/features/login/impl/root/LoginRootPresenter.kt +++ b/features/login/impl/src/main/kotlin/io/element/android/features/login/impl/root/LoginRootPresenter.kt @@ -71,7 +71,7 @@ class LoginRootPresenter @Inject constructor(private val authenticationService: loggedInState.value = LoggedInState.LoggingIn //TODO rework the setHomeserver flow authenticationService.setHomeserver(homeserver) - authenticationService.login(formState.login.trim(), formState.password.trim()) + authenticationService.login(formState.login.trim(), formState.password) .onSuccess { sessionId -> loggedInState.value = LoggedInState.LoggedIn(sessionId) }