Enable link & sync in beta
This commit is contained in:
parent
e680b7a21d
commit
91e42b4f2e
2 changed files with 3 additions and 12 deletions
|
@ -422,9 +422,7 @@ export class Provisioner {
|
|||
.toAppUrl({
|
||||
uuid,
|
||||
pubKey: Bytes.toBase64(cipher.getPublicKey()),
|
||||
capabilities: isLinkAndSyncEnabled(this.#appVersion)
|
||||
? ['backup', 'backup2']
|
||||
: [],
|
||||
capabilities: isLinkAndSyncEnabled(this.#appVersion) ? ['backup3'] : [],
|
||||
})
|
||||
.toString();
|
||||
|
||||
|
|
|
@ -1,9 +1,7 @@
|
|||
// Copyright 2024 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import { isTestOrMockEnvironment } from '../environment';
|
||||
import { isStagingServer } from './isStagingServer';
|
||||
import { isAdhoc, isNightly } from './version';
|
||||
import { isProduction } from './version';
|
||||
import { everDone as wasRegistrationEverDone } from './registration';
|
||||
|
||||
export function isLinkAndSyncEnabled(version: string): boolean {
|
||||
|
@ -12,10 +10,5 @@ export function isLinkAndSyncEnabled(version: string): boolean {
|
|||
return false;
|
||||
}
|
||||
|
||||
return (
|
||||
isStagingServer() ||
|
||||
isTestOrMockEnvironment() ||
|
||||
isNightly(version) ||
|
||||
isAdhoc(version)
|
||||
);
|
||||
return !isProduction(version);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue