mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-17 23:34:14 +01:00
Update link & sync availability
This commit is contained in:
@@ -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)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user