From 534afacb40e338028cc1b37ae87f63f9731cbbc1 Mon Sep 17 00:00:00 2001 From: Natsumi Date: Thu, 1 Apr 2021 06:38:39 +1300 Subject: [PATCH] Temporary fix for always online bug --- html/src/app.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/html/src/app.js b/html/src/app.js index 902f5146..d9306b52 100644 --- a/html/src/app.js +++ b/html/src/app.js @@ -5173,16 +5173,14 @@ speechSynthesis.getVoices(); $app.methods.userStatusClass = function (user) { var style = {}; if (typeof user !== 'undefined') { - if (user.location === 'offline') { + if ((user.location === 'offline') || + ((!this.friendsGroup0_.filter(e => e.id === user.id).length > 0) && + (!this.friendsGroup1_.filter(e => e.id === user.id).length > 0))) { // Offline style.offline = true; } else if (user.status === 'active') { // Online style.active = true; - } else if ((!this.friendsGroup0_.filter(e => e.id === user.id).length > 0) && - (!this.friendsGroup1_.filter(e => e.id === user.id).length > 0)) { - // Offline - style.offline = true; } else if (user.status === 'join me') { // Join Me style.joinme = true;