We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4deb9bf commit a07efbeCopy full SHA for a07efbe
features/login/impl/src/main/kotlin/io/element/android/features/login/impl/login/LoginHelper.kt
@@ -94,6 +94,11 @@ class LoginHelper(
94
}
95
96
private suspend fun onOidcAction(oidcAction: OidcAction) {
97
+ if (oidcAction is OidcAction.GoBack && loginModeState.value !is AsyncData.Loading) {
98
+ // Ignore GoBack action if the current state is not Loading. This GoBack action is coming from LoginFlowNode.
99
+ // This can happen if there is an error, for instance attempt to login again on the same account.
100
+ return
101
+ }
102
loginModeState.value = AsyncData.Loading()
103
when (oidcAction) {
104
OidcAction.GoBack -> {
0 commit comments