Skip to content

Commit

Permalink
Don't save corres game for now
Browse files Browse the repository at this point in the history
  • Loading branch information
veloce committed Dec 6, 2023
1 parent b21f948 commit f3450d8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/src/model/game/game_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -756,6 +756,7 @@ class GameController extends _$GameController {
}
}

// ignore: unused_element
void _saveCorrespondenceGameState(GameState state) {
if (state.game.youAre != null) {
ref.read(correspondenceGameStorageProvider).save(
Expand Down

0 comments on commit f3450d8

Please sign in to comment.