mirror of
https://github.com/lichess-org/mobile.git
synced 2026-05-26 13:50:52 +00:00
6c5b5b702c
* Fix zen mode toggle not persisting across games When account zen mode preference is 'In Game Only' (Zen.gameAuto), toggling zen mode off during a game would reset on the next game because the toggle was stored as an ephemeral field (zenModeGameSetting) that was discarded when the GameController was recreated. Now toggleZenMode() syncs to the server via accountPreferencesProvider.setZen(), making the server the single source of truth. The zenModeGameSetting field has been removed from GameState. Closes #3226 * Address review: move tests to game_screen_test.dart, restore original zen pref on toggle