mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-02 00:07:56 +01:00
15 lines
485 B
TypeScript
15 lines
485 B
TypeScript
// Copyright 2024 Signal Messenger, LLC
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
import { isTestOrMockEnvironment } from '../environment.std.js';
|
|
import { itemStorage } from '../textsecure/Storage.preload.js';
|
|
|
|
export function areRemoteBackupsTurnedOn(): boolean {
|
|
return itemStorage.get('backupTier') != null;
|
|
}
|
|
|
|
// Downloading from a remote backup is currently a test-only feature
|
|
export function canAttemptRemoteBackupDownload(): boolean {
|
|
return isTestOrMockEnvironment();
|
|
}
|