diff options
Diffstat (limited to 'server.js')
-rw-r--r-- | server.js | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1435,7 +1435,7 @@ function annotate_game_info(game, user_id, unread) { if (p.user_id === user_id) { your_role = p.role your_count++ - if ((p_is_active || p_is_owner) && game.is_ready) + if (p_is_active && game.is_ready) game.your_turn = true if (p.is_invite) game.your_turn = true @@ -1460,6 +1460,9 @@ function annotate_game_info(game, user_id, unread) { game.result = `${link} (${game.result})` } + if (game.status === STATUS_OPEN && game.is_ready && game.owner_id === user_id) + game.your_turn = true + if (your_count > 0) { game.is_yours = true if (your_count === 1) |