From e0b6272c00cd042f77075c1caf451711837983fa Mon Sep 17 00:00:00 2001 From: Boris Safonov Date: Mon, 13 May 2024 16:46:55 +0300 Subject: [PATCH] fix: Websocket toggle always off --- .../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 {