From 46c3fddba7038c9472a2c7b1d04d8118c275ab65 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 7 Nov 2024 01:57:57 +0100 Subject: Stop sending "game started" notifications. --- server.js | 9 --------- 1 file changed, 9 deletions(-) (limited to 'server.js') diff --git a/server.js b/server.js index 1992571..fba2afa 100644 --- a/server.js +++ b/server.js @@ -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) { -- cgit v1.2.3