Files
Desktop/ts/util/isLinkAndSyncEnabled.ts
automated-signal c1d5a835e0 Enable link & sync in beta
Co-authored-by: trevor-signal <131492920+trevor-signal@users.noreply.github.com>
2025-01-28 21:49:03 -08:00

15 lines
401 B
TypeScript

// Copyright 2024 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import { isProduction } from './version';
import { everDone as wasRegistrationEverDone } from './registration';
export function isLinkAndSyncEnabled(version: string): boolean {
// Cannot overwrite existing message history
if (wasRegistrationEverDone()) {
return false;
}
return !isProduction(version);
}