Enable link & sync in beta

This commit is contained in:
trevor-signal 2025-01-28 19:52:33 -05:00 committed by GitHub
parent e680b7a21d
commit 91e42b4f2e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 12 deletions

View file

@ -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();

View file

@ -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);
}