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