mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-05-08 08:58:38 +01:00
Add a remote config option to disable libsignal transport in prod
This commit is contained in:
@@ -559,8 +559,14 @@ export class SocketManager extends EventListener {
|
||||
: TransportOption.ShadowingLow;
|
||||
}
|
||||
|
||||
// in prod, using original
|
||||
return TransportOption.ShadowingLow;
|
||||
// in prod, switch to using 'ShadowingHigh' mode, unless user opts out,
|
||||
// in which case switching to `ShadowingLow`
|
||||
const configValue = window.Signal.RemoteConfig.isEnabled(
|
||||
'desktop.experimentalTransportEnabled.prod'
|
||||
);
|
||||
return configValue
|
||||
? TransportOption.ShadowingLow
|
||||
: TransportOption.Original;
|
||||
}
|
||||
|
||||
private connectLibsignalUnauthenticated(): AbortableProcess<IWebSocketResource> {
|
||||
|
||||
Reference in New Issue
Block a user