Update link & sync availability

This commit is contained in:
automated-signal 2025-01-23 15:20:44 -06:00 committed by GitHub
parent 77e5e2c947
commit 7e0d43fb99
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 3 deletions

View file

@ -422,7 +422,7 @@ export class Provisioner {
.toAppUrl({
uuid,
pubKey: Bytes.toBase64(cipher.getPublicKey()),
capabilities: isLinkAndSyncEnabled(this.#appVersion) ? ['backup2'] : [],
capabilities: isLinkAndSyncEnabled(this.#appVersion) ? ['backup'] : [],
})
.toString();

View file

@ -1,7 +1,9 @@
// Copyright 2024 Signal Messenger, LLC
// 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';
export function isLinkAndSyncEnabled(version: string): boolean {
@ -10,5 +12,10 @@ export function isLinkAndSyncEnabled(version: string): boolean {
return false;
}
return !isProduction(version);
return (
isStagingServer() ||
isTestOrMockEnvironment() ||
isNightly(version) ||
isAdhoc(version)
);
}