signal-desktop/ts/storage/isFeatureEnabled.ts

13 lines
351 B
TypeScript
Raw Normal View History

2021-03-03 20:09:58 +00:00
// 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.storageWrite2');
}