From 4411ffb57f9ef645a53d535fd3c6652f85c388d8 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 20 May 2024 10:13:09 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20Websocket=20toggle=20always=20off=20[WBP?= =?UTF-8?q?-8669]=20=F0=9F=8D=92=20(#3005)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: boris --- .../appsettings/networkSettings/NetworkSettingsScreen.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/wire/android/ui/home/settings/appsettings/networkSettings/NetworkSettingsScreen.kt b/app/src/main/kotlin/com/wire/android/ui/home/settings/appsettings/networkSettings/NetworkSettingsScreen.kt index d46ef8a6ea9..c13a5fa6f44 100644 --- a/app/src/main/kotlin/com/wire/android/ui/home/settings/appsettings/networkSettings/NetworkSettingsScreen.kt +++ b/app/src/main/kotlin/com/wire/android/ui/home/settings/appsettings/networkSettings/NetworkSettingsScreen.kt @@ -79,7 +79,7 @@ fun NetworkSettingsScreenContent( val isWebSocketEnforcedByDefault = remember { isWebsocketEnabledByDefault(appContext) } - val switchState = remember { + val switchState = remember(isWebSocketEnabled) { if (isWebSocketEnforcedByDefault) { SwitchState.TextOnly(true) } else {