Fixes for empty location + add Active user state 1

This commit is contained in:
Natsumi
2021-05-22 16:44:57 +12:00
parent c3d6b6f2fa
commit f8acbc436e

View File

@@ -5470,11 +5470,12 @@ speechSynthesis.getVoices();
return;
}
//temp fix
if ((user.status !== 'active') && (id) && (id !== API.currentUser.id) &&
(!this.friendsGroup0_.filter(e => e.id === id).length > 0) &&
(!this.friendsGroup1_.filter(e => e.id === id).length > 0)) {
// Active
style.active = true;
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;
} else if (user.location === 'offline') {
// Offline
style.offline = true;