Skip to content

Commit

Permalink
fix: Websocket toggle always off [WBP-8669] (#2999)
Browse files Browse the repository at this point in the history
  • Loading branch information
borichellow authored and github-actions[bot] committed May 15, 2024
1 parent 24769c4 commit 118234a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ fun NetworkSettingsScreenContent(
val isWebSocketEnforcedByDefault = remember {
isWebsocketEnabledByDefault(appContext)
}
val switchState = remember {
val switchState = remember(isWebSocketEnabled) {
if (isWebSocketEnforcedByDefault) {
SwitchState.TextOnly(true)
} else {
Expand Down

0 comments on commit 118234a

Please sign in to comment.