signal-desktop/ts/util/isBackupEnabled.ts

13 lines
357 B
TypeScript
Raw Normal View History

2024-04-22 23:25:56 +02:00
// Copyright 2024 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import * as RemoteConfig from '../RemoteConfig';
2024-09-04 11:12:45 -07:00
import { isStagingServer } from './isStagingServer';
2024-04-22 23:25:56 +02:00
export function isBackupEnabled(): boolean {
2024-09-04 11:12:45 -07:00
if (isStagingServer()) {
2024-08-08 12:22:48 -07:00
return true;
}
2024-04-22 23:25:56 +02:00
return Boolean(RemoteConfig.isEnabled('desktop.backup.credentialFetch'));
}