Skip to content

Commit

Permalink
fix: Websocket toggle always off
Browse files Browse the repository at this point in the history
  • Loading branch information
borichellow committed May 13, 2024
1 parent 163d5ab commit e0b6272
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 e0b6272

Please sign in to comment.