From 9f9160eaf6f334a8c4205b5836a8ce3706f1eae7 Mon Sep 17 00:00:00 2001 From: Halit Aksoy Date: Mon, 1 Aug 2022 22:38:03 +0300 Subject: [PATCH] fix: update gameUsersConnectionInfo onGameMove --- src/game/GameManager.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/game/GameManager.ts b/src/game/GameManager.ts index 7cd5786..0c7269b 100644 --- a/src/game/GameManager.ts +++ b/src/game/GameManager.ts @@ -54,6 +54,7 @@ export class GameManager { if (game) { try { game.mancalaGame.moveByPlayerPit(userKey, gameMove.index); + game.gameUsersConnectionInfo = this.getGameUsersConnectionInfo(game); this.rtmt.sendMessage(game.mancalaGame.player1Id, channel_on_game_update, game); this.rtmt.sendMessage(game.mancalaGame.player2Id, channel_on_game_update, game); if (game.mancalaGame.state == "ended") {