Skip to content

Commit

Permalink
Set socket version after request
Browse files Browse the repository at this point in the history
  • Loading branch information
veloce committed Jan 30, 2024
1 parent b74f3a6 commit 04a450d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/model/game/game_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,6 @@ class GameController extends _$GameController {

PlayableGame game = fullEvent.game;

_socketEventVersion = fullEvent.socketEventVersion;

if (fullEvent.game.messages != null) {
chatNotifier.setMessages(fullEvent.game.messages!);
}
Expand All @@ -96,6 +94,8 @@ class GameController extends _$GameController {
});
}

_socketEventVersion = fullEvent.socketEventVersion;

return GameState(
gameFullId: gameFullId,
game: game,
Expand Down

0 comments on commit 04a450d

Please sign in to comment.