From b4482ec2d4c50825c43e67737ab95549a3531f58 Mon Sep 17 00:00:00 2001 From: Audric Ackermann Date: Fri, 14 Jul 2023 12:54:52 +0200 Subject: [PATCH] fix: enable userconfig release to be 31st July 31st July, 10am Melbourne time --- ts/util/releaseFeature.ts | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/ts/util/releaseFeature.ts b/ts/util/releaseFeature.ts index ceb98a59b..602f3b553 100644 --- a/ts/util/releaseFeature.ts +++ b/ts/util/releaseFeature.ts @@ -46,10 +46,8 @@ function getFeatureReleaseTimestamp(featureName: FeatureNameTracked) { return 1706778000000; // unix 01/02/2024 09:00; // return 1677488400000; // testing: unix 27/02/2023 09:00 case 'user_config_libsession': - // TODO update to agreed value between platforms for `user_config_libsession` - // FIXME once we are done with testing the user config over libsession feature - // return (window as any).user_config_libsession || 1706778000000; // unix 01/02/2024 09:00; - return 1677488400000; // testing: unix 27/02/2023 09:00 + return 1690761600000; // Monday July 31st at 10am Melbourne time + // return 1677488400000; // testing: unix 27/02/2023 09:00 default: assertUnreachable(featureName, 'case not handled for getFeatureReleaseTimestamp'); @@ -81,8 +79,7 @@ async function checkIsFeatureReleased(featureName: FeatureNameTracked): Promise< // Is it time to release the feature based on the network timestamp? if ( !featureAlreadyReleased && - (GetNetworkTime.getNowWithNetworkOffset() >= getFeatureReleaseTimestamp(featureName) || - featureName === 'user_config_libsession') // we want to make a build which has user config enabled by default for internal testing // TODO to remove for official build + GetNetworkTime.getNowWithNetworkOffset() >= getFeatureReleaseTimestamp(featureName) ) { window.log.info(`[releaseFeature]: It is time to release ${featureName}. Releasing it now`); await Storage.put(featureStorageItemId(featureName), true);