Update link & sync availability
This commit is contained in:
parent
77e5e2c947
commit
7e0d43fb99
2 changed files with 10 additions and 3 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) ? ['backup2'] : [],
|
capabilities: isLinkAndSyncEnabled(this.#appVersion) ? ['backup'] : [],
|
||||||
})
|
})
|
||||||
.toString();
|
.toString();
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
// 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 { isProduction } from './version';
|
import { isTestOrMockEnvironment } from '../environment';
|
||||||
|
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 {
|
||||||
|
@ -10,5 +12,10 @@ export function isLinkAndSyncEnabled(version: string): boolean {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return !isProduction(version);
|
return (
|
||||||
|
isStagingServer() ||
|
||||||
|
isTestOrMockEnvironment() ||
|
||||||
|
isNightly(version) ||
|
||||||
|
isAdhoc(version)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue