From d77ce27953e541dffcd17a49b500d32df3eaea96 Mon Sep 17 00:00:00 2001 From: ericdecanini Date: Tue, 6 Sep 2022 17:31:52 +0200 Subject: [PATCH] Fixes wrong use of feature flag instead of labs flag --- .../java/im/vector/app/features/home/HomeActivityViewModel.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vector/src/main/java/im/vector/app/features/home/HomeActivityViewModel.kt b/vector/src/main/java/im/vector/app/features/home/HomeActivityViewModel.kt index 156c1fca2f..2c8ee48d39 100644 --- a/vector/src/main/java/im/vector/app/features/home/HomeActivityViewModel.kt +++ b/vector/src/main/java/im/vector/app/features/home/HomeActivityViewModel.kt @@ -120,7 +120,7 @@ class HomeActivityViewModel @AssistedInject constructor( private fun observeReleaseNotes() = withState { state -> // we don't want to show release notes for new users or after relogin - if (state.authenticationDescription == null && vectorFeatures.isNewAppLayoutFeatureEnabled()) { + if (state.authenticationDescription == null && vectorPreferences.isNewAppLayoutEnabled()) { releaseNotesPreferencesStore.appLayoutOnboardingShown.onEach { isAppLayoutOnboardingShown -> if (!isAppLayoutOnboardingShown) { releaseNotesPreferencesStore.setAppLayoutOnboardingShown(true)