From f0f381a1463a86320fbe97f3a27efc04b2a6438a Mon Sep 17 00:00:00 2001 From: Natsumi Date: Sat, 22 May 2021 16:53:16 +1200 Subject: [PATCH] Fixes for empty location + add Active user state 2 --- html/src/app.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/html/src/app.js b/html/src/app.js index ed4f9852..4cee5bcd 100644 --- a/html/src/app.js +++ b/html/src/app.js @@ -5472,10 +5472,14 @@ speechSynthesis.getVoices(); //temp fix if ((user.status !== 'active') && (user.location === 'private') && (user.state === '') && (id) && (id !== API.currentUser.id) && - (!API.currentUser.onlineFriends.includes(id)) && - (!API.currentUser.activeFriends.includes(id))) { - // Offline - style.offline = true; + (!API.currentUser.onlineFriends.includes(id))) { + if (API.currentUser.activeFriends.includes(id)) { + // Active + style.active = true; + } else { + // Offline + style.offline = true; + } } else if (user.location === 'offline') { // Offline style.offline = true;