From 5b0e267fb282aa555dcf13510159fba3e8c515bc Mon Sep 17 00:00:00 2001 From: Josh Perez <60019601+josh-signal@users.noreply.github.com> Date: Tue, 8 Dec 2020 16:16:40 -0500 Subject: [PATCH] Revs up the desktop.storageWrite2 feature flag --- ts/RemoteConfig.ts | 2 +- ts/models/conversations.ts | 4 ++-- ts/services/storage.ts | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ts/RemoteConfig.ts b/ts/RemoteConfig.ts index f75866834719..e3e026bafa73 100644 --- a/ts/RemoteConfig.ts +++ b/ts/RemoteConfig.ts @@ -13,7 +13,7 @@ type ConfigKeyType = | 'desktop.mandatoryProfileSharing' | 'desktop.messageRequests' | 'desktop.storage' - | 'desktop.storageWrite' + | 'desktop.storageWrite2' | 'global.groupsv2.maxGroupSize' | 'global.groupsv2.groupSizeHardLimit'; type ConfigValueType = { diff --git a/ts/models/conversations.ts b/ts/models/conversations.ts index 2beb34f57ebf..d9ff574fa6a4 100644 --- a/ts/models/conversations.ts +++ b/ts/models/conversations.ts @@ -4163,9 +4163,9 @@ export class ConversationModel extends window.Backbone.Model< // [X] archived // [X] markedUnread captureChange(property: string): void { - if (!window.Signal.RemoteConfig.isEnabled('desktop.storageWrite')) { + if (!window.Signal.RemoteConfig.isEnabled('desktop.storageWrite2')) { window.log.info( - 'conversation.captureChange: Returning early; desktop.storageWrite is falsey' + 'conversation.captureChange: Returning early; desktop.storageWrite2 is falsey' ); return; diff --git a/ts/services/storage.ts b/ts/services/storage.ts index 0d48b07ef25b..03329e6a4ce0 100644 --- a/ts/services/storage.ts +++ b/ts/services/storage.ts @@ -956,9 +956,9 @@ async function upload(): Promise { return; } - if (!isEnabled('desktop.storageWrite')) { + if (!isEnabled('desktop.storageWrite2')) { window.log.info( - 'storageService.upload: Not starting desktop.storageWrite is falsey' + 'storageService.upload: Not starting desktop.storageWrite2 is falsey' ); return;