mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-25 02:48:23 +01:00
Rename files
This commit is contained in:
13
ts/util/isLinkAndSyncEnabled.preload.ts
Normal file
13
ts/util/isLinkAndSyncEnabled.preload.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
// Copyright 2024 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import { everDone as wasRegistrationEverDone } from './registration.preload.js';
|
||||
|
||||
export function isLinkAndSyncEnabled(): boolean {
|
||||
// Cannot overwrite existing message history
|
||||
if (wasRegistrationEverDone()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
Reference in New Issue
Block a user