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