summaryrefslogtreecommitdiff
path: root/server.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-11-07 01:57:57 +0100
committerTor Andersson <tor@ccxvii.net>2024-11-07 01:57:57 +0100
commit46c3fddba7038c9472a2c7b1d04d8118c275ab65 (patch)
tree354375042029e8860bfc926a20af6643a429fca4 /server.js
parent12b1fe7be924fba575f3f1fdeb5685c3966b67f5 (diff)
downloadserver-46c3fddba7038c9472a2c7b1d04d8118c275ab65.tar.gz
Stop sending "game started" notifications.
Diffstat (limited to 'server.js')
-rw-r--r--server.js9
1 files changed, 0 insertions, 9 deletions
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) {