avoiding resetting pending state when starting a new login flow

- fixes selecting a incorrect homeserver and returning to the previous login page also failing
This commit is contained in:
Adam Brown 2022-05-18 14:16:36 +01:00
parent 033b877269
commit b0c294b41b

View file

@ -136,10 +136,6 @@ internal class DefaultAuthenticationService @Inject constructor(
* valid homeserver API url, the url of Element Web, or anything else.
*/
override suspend fun getLoginFlow(homeServerConnectionConfig: HomeServerConnectionConfig): LoginFlowResult {
pendingSessionData = null
pendingSessionStore.delete()
val result = runCatching {
getLoginFlowInternal(homeServerConnectionConfig)
}