Sync storiesDisabled flag on AccountRecord

This commit is contained in:
Fedor Indutny
2022-10-04 10:53:36 -07:00
committed by GitHub
parent 3e57cb8549
commit 8b705d3b55
11 changed files with 42 additions and 35 deletions

View File

@@ -67,7 +67,7 @@ export const getStoriesEnabled = createSelector(
getItems,
getRemoteConfig,
(state: ItemsStateType, remoteConfig: ConfigMapType): boolean =>
state.hasStoriesEnabled !== false &&
!state.hasStoriesDisabled &&
(isRemoteConfigFlagEnabled(remoteConfig, 'desktop.internalUser') ||
isRemoteConfigFlagEnabled(remoteConfig, 'desktop.stories'))
);