You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
530 B
TypeScript
16 lines
530 B
TypeScript
import { NetworkTime } from '../../util/NetworkTime';
|
|
import { LEGACY_GROUP_DEPRECATED_TIMESTAMP_MS } from '../ducks/releasedFeatures';
|
|
|
|
export const areLegacyGroupsDeprecatedYet = (): boolean => {
|
|
const theyAreDeprecated = NetworkTime.now() >= LEGACY_GROUP_DEPRECATED_TIMESTAMP_MS;
|
|
|
|
return window.sessionFeatureFlags.forceLegacyGroupsDeprecated || theyAreDeprecated;
|
|
};
|
|
|
|
export function areLegacyGroupsDeprecatedYetOutsideRedux() {
|
|
if (!window.inboxStore) {
|
|
return false;
|
|
}
|
|
return areLegacyGroupsDeprecatedYet();
|
|
}
|