Temporary fix for always online bug

This commit is contained in:
Natsumi
2021-04-01 06:38:39 +13:00
parent 8d0650a5b6
commit 534afacb40

View File

@@ -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;