Fix current user being displayed as offline

This commit is contained in:
Natsumi
2021-04-05 06:02:39 +12:00
parent a7f4da7a7b
commit 656cac6843

View File

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