From b0c294b41b18b95507236c2376f7f7eaeeed1d1f Mon Sep 17 00:00:00 2001 From: Adam Brown Date: Wed, 18 May 2022 14:16:36 +0100 Subject: [PATCH] avoiding resetting pending state when starting a new login flow - fixes selecting a incorrect homeserver and returning to the previous login page also failing --- .../android/sdk/internal/auth/DefaultAuthenticationService.kt | 4 ---- 1 file changed, 4 deletions(-) diff --git a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/auth/DefaultAuthenticationService.kt b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/auth/DefaultAuthenticationService.kt index 3edcd996cb..1c2b89be89 100644 --- a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/auth/DefaultAuthenticationService.kt +++ b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/auth/DefaultAuthenticationService.kt @@ -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) }