signal-desktop/ts/util/isBackupEnabled.ts
2024-09-04 11:12:45 -07:00

12 lines
357 B
TypeScript

// Copyright 2024 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import * as RemoteConfig from '../RemoteConfig';
import { isStagingServer } from './isStagingServer';
export function isBackupEnabled(): boolean {
if (isStagingServer()) {
return true;
}
return Boolean(RemoteConfig.isEnabled('desktop.backup.credentialFetch'));
}