Enable link & sync in beta

This commit is contained in:
automated-signal 2025-01-22 15:09:22 -06:00 committed by GitHub
parent 151ca7162f
commit f0d112fa1b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 10 deletions

View file

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

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