Remove Post Priority Feature Flag (#7433)

* Remove post priority FF

* Linting
This commit is contained in:
Maria A Nunez 2023-07-07 11:42:35 -04:00 committed by GitHub
parent 0d4d6e22ca
commit f11ffc7976
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -234,9 +234,8 @@ export const observeSavedPostsByIds = (database: Database, postIds: string[]) =>
};
export const getIsPostPriorityEnabled = async (database: Database) => {
const featureFlag = await getConfigValue(database, 'FeatureFlagPostPriority');
const cfg = await getConfigValue(database, 'PostPriority');
return featureFlag === 'true' && cfg === 'true';
return cfg === 'true';
};
export const getIsPostAcknowledgementsEnabled = async (database: Database) => {
@ -245,13 +244,7 @@ export const getIsPostAcknowledgementsEnabled = async (database: Database) => {
};
export const observeIsPostPriorityEnabled = (database: Database) => {
const featureFlag = observeConfigBooleanValue(database, 'FeatureFlagPostPriority');
const cfg = observeConfigBooleanValue(database, 'PostPriority');
return featureFlag.pipe(
combineLatestWith(cfg),
switchMap(([ff, c]) => of$(ff && c)),
distinctUntilChanged(),
);
return observeConfigBooleanValue(database, 'PostPriority');
};
export const observeIsPostAcknowledgementsEnabled = (database: Database) => {