mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-18 23:49:20 +01:00
Improvements to local import testing
Co-authored-by: trevor-signal <131492920+trevor-signal@users.noreply.github.com>
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
// Copyright 2024 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import { backupsService } from '../services/backups/index.preload.js';
|
||||
import { everDone as wasRegistrationEverDone } from './registration.preload.js';
|
||||
|
||||
export function isLinkAndSyncEnabled(): boolean {
|
||||
@@ -9,5 +10,10 @@ export function isLinkAndSyncEnabled(): boolean {
|
||||
return false;
|
||||
}
|
||||
|
||||
// For local backup import testing, prevent link & sync
|
||||
if (backupsService.isLocalBackupStaged()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user