From 656cac6843e2e00d8a3c0b2da9034e0873a1cdd3 Mon Sep 17 00:00:00 2001 From: Natsumi Date: Mon, 5 Apr 2021 06:02:39 +1200 Subject: [PATCH] Fix current user being displayed as offline --- html/src/app.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/html/src/app.js b/html/src/app.js index dff24a19..a8a49aa4 100644 --- a/html/src/app.js +++ b/html/src/app.js @@ -5207,7 +5207,8 @@ speechSynthesis.getVoices(); id = user.userId; } if ((user.location === 'offline') || - ((id) && (!this.friendsGroup0_.filter(e => e.id === id).length > 0) && + ((id) && (id !== API.currentUser.id) && + (!this.friendsGroup0_.filter(e => e.id === id).length > 0) && (!this.friendsGroup1_.filter(e => e.id === id).length > 0))) { // Offline style.offline = true;