signal-desktop/ts/util/isLinkAndSyncEnabled.ts

14 lines
326 B
TypeScript
Raw Normal View History

2024-10-18 10:15:03 -07:00
// Copyright 2024 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import { everDone as wasRegistrationEverDone } from './registration';
2025-02-12 11:35:05 -05:00
export function isLinkAndSyncEnabled(): boolean {
2024-10-18 10:15:03 -07:00
// Cannot overwrite existing message history
if (wasRegistrationEverDone()) {
return false;
}
2025-02-12 11:35:05 -05:00
return true;
2024-10-18 10:15:03 -07:00
}