diff --git a/ts/components/leftPane/LeftPaneComposeHelper.tsx b/ts/components/leftPane/LeftPaneComposeHelper.tsx index e51680ff027..ef4037057fa 100644 --- a/ts/components/leftPane/LeftPaneComposeHelper.tsx +++ b/ts/components/leftPane/LeftPaneComposeHelper.tsx @@ -16,7 +16,6 @@ import { } from '../../util/libphonenumberInstance'; import { assert } from '../../util/assert'; import { missingCaseError } from '../../util/missingCaseError'; -import { isStorageWriteFeatureEnabled } from '../../storage/isFeatureEnabled'; export type LeftPaneComposePropsType = { composeContacts: ReadonlyArray; @@ -229,7 +228,7 @@ export class LeftPaneComposeHelper extends LeftPaneHelper { - if (!isStorageWriteFeatureEnabled()) { - log.info('storageService.sync: Not starting desktop.storage is falsey'); - - return undefined; - } - if (!window.storage.get('storageKey')) { throw new Error('storageService.sync: Cannot start; no storage key!'); } @@ -1081,14 +1074,6 @@ async function sync( } async function upload(fromSync = false): Promise { - if (!isStorageWriteFeatureEnabled()) { - log.info( - 'storageService.upload: Not starting because the feature is not enabled' - ); - - return; - } - if (!window.textsecure.messaging) { throw new Error('storageService.upload: We are offline!'); } diff --git a/ts/storage/isFeatureEnabled.ts b/ts/storage/isFeatureEnabled.ts deleted file mode 100644 index 0874e84a05d..00000000000 --- a/ts/storage/isFeatureEnabled.ts +++ /dev/null @@ -1,12 +0,0 @@ -// Copyright 2021 Signal Messenger, LLC -// SPDX-License-Identifier: AGPL-3.0-only - -import { isEnabled } from '../RemoteConfig'; - -function isStorageFeatureEnabled(): boolean { - return isEnabled('desktop.storage'); -} - -export function isStorageWriteFeatureEnabled(): boolean { - return isStorageFeatureEnabled() && isEnabled('desktop.storageWrite3'); -}