Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c4507a0c authored by Mohammed Althaf T's avatar Mohammed Althaf T 😊
Browse files

Logout existing session on login action

parent 19eb4584
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -247,7 +247,9 @@ class MainActivity : AppCompatActivity() {
                return@launch
            }

            if (viewModel.resolveCurrentSession() !is AuthSession.PlayStoreSession) {
            val requestLogout =
                isLoginAction || viewModel.resolveCurrentSession() !is AuthSession.PlayStoreSession
            if (requestLogout) {
                loginViewModel.onEvent(LoginUiEvent.LogoutRequested)
            }
        }