flag change is set before posting action to ensure it's executed properly

This commit is contained in:
NIkita Fedrunov 2022-09-05 17:41:41 +02:00
parent d18f3cfe06
commit 6a9284eae3
1 changed files with 1 additions and 1 deletions

View File

@ -123,8 +123,8 @@ class HomeActivityViewModel @AssistedInject constructor(
if (state.authenticationDescription == null && vectorFeatures.isNewAppLayoutEnabled()) { if (state.authenticationDescription == null && vectorFeatures.isNewAppLayoutEnabled()) {
releaseNotesPreferencesStore.appLayoutOnboardingShown.onEach { isAppLayoutOnboardingShown -> releaseNotesPreferencesStore.appLayoutOnboardingShown.onEach { isAppLayoutOnboardingShown ->
if (!isAppLayoutOnboardingShown) { if (!isAppLayoutOnboardingShown) {
_viewEvents.post(HomeActivityViewEvents.ShowReleaseNotes)
releaseNotesPreferencesStore.setAppLayoutOnboardingShown(true) releaseNotesPreferencesStore.setAppLayoutOnboardingShown(true)
_viewEvents.post(HomeActivityViewEvents.ShowReleaseNotes)
} }
}.launchIn(viewModelScope) }.launchIn(viewModelScope)
} else { } else {