diff options
-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) { |