From 7a83c31f0c88c799ced6ad2c81b42c6c059f1b88 Mon Sep 17 00:00:00 2001 From: Natsumi Date: Fri, 17 Sep 2021 21:25:47 +1200 Subject: [PATCH] Fix self online for --- html/src/app.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/html/src/app.js b/html/src/app.js index 193b132d..a4fc9a6f 100644 --- a/html/src/app.js +++ b/html/src/app.js @@ -1317,7 +1317,11 @@ speechSynthesis.getVoices(); if (json.id === API.currentUser.id) { json.status = API.currentUser.status; json.statusDescription = API.currentUser.statusDescription; - json.state = API.currentUser.state; + if ($app.isGameRunning) { + json.state = 'online'; + } else { + json.state = 'active'; + } json.last_login = API.currentUser.last_login; if ( typeof json.location !== 'undefined' &&