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:
parent
033b877269
commit
b0c294b41b
@ -136,10 +136,6 @@ internal class DefaultAuthenticationService @Inject constructor(
|
|||||||
* valid homeserver API url, the url of Element Web, or anything else.
|
* valid homeserver API url, the url of Element Web, or anything else.
|
||||||
*/
|
*/
|
||||||
override suspend fun getLoginFlow(homeServerConnectionConfig: HomeServerConnectionConfig): LoginFlowResult {
|
override suspend fun getLoginFlow(homeServerConnectionConfig: HomeServerConnectionConfig): LoginFlowResult {
|
||||||
pendingSessionData = null
|
|
||||||
|
|
||||||
pendingSessionStore.delete()
|
|
||||||
|
|
||||||
val result = runCatching {
|
val result = runCatching {
|
||||||
getLoginFlowInternal(homeServerConnectionConfig)
|
getLoginFlowInternal(homeServerConnectionConfig)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user