From a5046d43c8b304b7db1ec461ef42b62c1cf68f6f Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Wed, 7 Sep 2022 14:51:37 +0200 Subject: [PATCH] Fix ReleaseNotesActivity displayed after login. Ensure the state is up to date, when we will request it later with withState{} --- .../im/vector/app/features/onboarding/OnboardingViewModel.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/vector/src/main/java/im/vector/app/features/onboarding/OnboardingViewModel.kt b/vector/src/main/java/im/vector/app/features/onboarding/OnboardingViewModel.kt index 52c445f1fa..4f8a77f25d 100644 --- a/vector/src/main/java/im/vector/app/features/onboarding/OnboardingViewModel.kt +++ b/vector/src/main/java/im/vector/app/features/onboarding/OnboardingViewModel.kt @@ -628,6 +628,7 @@ class OnboardingViewModel @AssistedInject constructor( } AuthenticationDescription.Login -> { setState { copy(isLoading = false, selectedAuthenticationState = SelectedAuthenticationState(authenticationDescription)) } + awaitState() _viewEvents.post(OnboardingViewEvents.OnAccountSignedIn) } }