mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-20 00:18:45 +01:00
Re-enable link-and-sync in Alpha
This commit is contained in:
@@ -3,13 +3,14 @@
|
||||
|
||||
import { isTestOrMockEnvironment } from '../environment';
|
||||
import { isStagingServer } from './isStagingServer';
|
||||
import { isAlpha } from './version';
|
||||
import { everDone as wasRegistrationEverDone } from './registration';
|
||||
|
||||
export function isLinkAndSyncEnabled(): boolean {
|
||||
export function isLinkAndSyncEnabled(version: string): boolean {
|
||||
// Cannot overwrite existing message history
|
||||
if (wasRegistrationEverDone()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return isStagingServer() || isTestOrMockEnvironment();
|
||||
return isStagingServer() || isTestOrMockEnvironment() || isAlpha(version);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user