From f3450d84a322664619994c3ed7de217166de446b Mon Sep 17 00:00:00 2001 From: Vincent Velociter Date: Wed, 6 Dec 2023 12:21:42 +0100 Subject: [PATCH] Don't save corres game for now --- lib/src/model/game/game_controller.dart | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/src/model/game/game_controller.dart b/lib/src/model/game/game_controller.dart index 296b6a5fab..6ca23961f3 100644 --- a/lib/src/model/game/game_controller.dart +++ b/lib/src/model/game/game_controller.dart @@ -527,7 +527,7 @@ class GameController extends _$GameController { if (curState.game.speed == Speed.correspondence) { ref.invalidate(ongoingGamesProvider); - _saveCorrespondenceGameState(newState); + // _saveCorrespondenceGameState(newState); } state = AsyncValue.data(newState); @@ -567,7 +567,7 @@ class GameController extends _$GameController { if (curState.game.speed == Speed.correspondence) { ref.invalidate(ongoingGamesProvider); - _saveCorrespondenceGameState(newState); + // _saveCorrespondenceGameState(newState); } state = AsyncValue.data(newState); @@ -756,6 +756,7 @@ class GameController extends _$GameController { } } + // ignore: unused_element void _saveCorrespondenceGameState(GameState state) { if (state.game.youAre != null) { ref.read(correspondenceGameStorageProvider).save(