diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-11-07 01:57:57 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-11-07 01:57:57 +0100 |
commit | 46c3fddba7038c9472a2c7b1d04d8118c275ab65 (patch) | |
tree | 354375042029e8860bfc926a20af6643a429fca4 /server.js | |
parent | 12b1fe7be924fba575f3f1fdeb5685c3966b67f5 (diff) | |
download | server-46c3fddba7038c9472a2c7b1d04d8118c275ab65.tar.gz |
Stop sending "game started" notifications.
Diffstat (limited to 'server.js')
-rw-r--r-- | server.js | 9 |
1 files changed, 0 insertions, 9 deletions
@@ -2136,7 +2136,6 @@ function start_game(game) { update_join_clients(game.game_id) - send_game_started_notification_to_offline_users(game.game_id) send_your_turn_notification_to_offline_users(game.game_id, null, state.active) } @@ -2479,14 +2478,6 @@ function send_your_turn_notification_to_offline_users(game_id, old_active, activ } } -function send_game_started_notification_to_offline_users(game_id) { - let players = SQL_SELECT_PLAYERS.all(game_id) - for (let p of players) { - if (!is_player_online(game_id, p.user_id)) - send_play_notification(p, game_id, "Started") - } -} - function send_game_finished_notification_to_offline_users(game_id, result) { let players = SQL_SELECT_PLAYERS.all(game_id) for (let p of players) { |