From 12a2a48e5e1158e1fcbed03862ab17e2869c09e4 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sat, 13 Jan 2024 13:26:16 +0100 Subject: No need to flag ready games as "your turn" for owner. This is already tracked in the SQL view is_active. --- server.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/server.js b/server.js index 3dc7e52..620fd58 100644 --- a/server.js +++ b/server.js @@ -1475,9 +1475,6 @@ function annotate_game_info(game, user_id, unread) { }).join(", ") } - 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) -- cgit v1.2.3