Enable link & sync in beta
This commit is contained in:
parent
151ca7162f
commit
f0d112fa1b
2 changed files with 3 additions and 10 deletions
|
@ -422,7 +422,7 @@ export class Provisioner {
|
|||
.toAppUrl({
|
||||
uuid,
|
||||
pubKey: Bytes.toBase64(cipher.getPublicKey()),
|
||||
capabilities: isLinkAndSyncEnabled(this.#appVersion) ? ['backup'] : [],
|
||||
capabilities: isLinkAndSyncEnabled(this.#appVersion) ? ['backup2'] : [],
|
||||
})
|
||||
.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…
Reference in a new issue