From 118234a8e240190b7c7fe498c01e1cbeb5639d20 Mon Sep 17 00:00:00 2001 From: boris Date: Wed, 15 May 2024 08:59:52 +0000 Subject: [PATCH] fix: Websocket toggle always off [WBP-8669] (#2999) --- .../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 {