From f4be6f6932d8e781773640b05b2a5c178b36628e Mon Sep 17 00:00:00 2001 From: Alex Bakon Date: Wed, 12 Mar 2025 11:53:31 -0400 Subject: [PATCH] Enable libsignal CDSI connect logic by default --- ts/RemoteConfig.ts | 2 +- ts/textsecure/cds/CDSSocketManagerBase.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ts/RemoteConfig.ts b/ts/RemoteConfig.ts index a35815832f..cc1515f886 100644 --- a/ts/RemoteConfig.ts +++ b/ts/RemoteConfig.ts @@ -32,7 +32,7 @@ export type ConfigKeyType = | 'desktop.experimentalTransportEnabled.beta' | 'desktop.experimentalTransportEnabled.prod' | 'desktop.cdsiViaLibsignal' - | 'desktop.cdsiViaLibsignal.libsignalRouteBasedCDSILookup' + | 'desktop.cdsiViaLibsignal.disableNewConnectionLogic' | 'desktop.funPicker' | 'desktop.releaseNotes' | 'desktop.releaseNotes.beta' diff --git a/ts/textsecure/cds/CDSSocketManagerBase.ts b/ts/textsecure/cds/CDSSocketManagerBase.ts index 93944805f2..383829b41b 100644 --- a/ts/textsecure/cds/CDSSocketManagerBase.ts +++ b/ts/textsecure/cds/CDSSocketManagerBase.ts @@ -121,8 +121,8 @@ export abstract class CDSSocketManagerBase< try { log.info('CDSSocketManager: starting lookup request'); - const useNewConnectLogic = window.Signal.RemoteConfig.isEnabled( - 'desktop.cdsiViaLibsignal.libsignalRouteBasedCDSILookup' + const useNewConnectLogic = !window.Signal.RemoteConfig.isEnabled( + 'desktop.cdsiViaLibsignal.disableNewConnectionLogic' ); const { timeout = REQUEST_TIMEOUT } = options; const response = await pTimeout(