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(