More bad temporary fixes

This commit is contained in:
Natsumi
2021-04-17 22:30:37 +12:00
parent 6aea44461f
commit 30b3156e33
+15 -3
View File
@@ -3232,6 +3232,8 @@ speechSynthesis.getVoices();
API.$on('PIPELINE', function (args) { API.$on('PIPELINE', function (args) {
var { type, content } = args.json; var { type, content } = args.json;
delete content.state;
delete content.status;
switch (type) { switch (type) {
case 'notification': case 'notification':
this.$emit('NOTIFICATION', { this.$emit('NOTIFICATION', {
@@ -5335,10 +5337,17 @@ speechSynthesis.getVoices();
} else if (user.userId) { } else if (user.userId) {
id = user.userId; id = user.userId;
} }
if ((user.location === 'offline') || if ((!user.isFriend) && (id) && (id !== API.currentUser.id)) {
((id) && (id !== API.currentUser.id) && return;
}
//temp fix
if ((user.status !== 'active') && (id) && (id !== API.currentUser.id) &&
(!this.friendsGroup0_.filter(e => e.id === id).length > 0) && (!this.friendsGroup0_.filter(e => e.id === id).length > 0) &&
(!this.friendsGroup1_.filter(e => e.id === id).length > 0))) { (!this.friendsGroup1_.filter(e => e.id === id).length > 0)) {
// Offline
style.offline = true;
} else if ((user.location === 'offline') ||
((user.state === 'active') && (user.location === 'private'))) {
// Offline // Offline
style.offline = true; style.offline = true;
} else if (user.status === 'active') { } else if (user.status === 'active') {
@@ -7795,6 +7804,9 @@ speechSynthesis.getVoices();
for (var { ref } of this.friends.values()) { for (var { ref } of this.friends.values()) {
if (typeof ref !== 'undefined' && if (typeof ref !== 'undefined' &&
ref.location === L.tag) { ref.location === L.tag) {
if ((ref.state === 'active') && (ref.location === 'private')) {
continue;
}
users.push(ref); users.push(ref);
} }
} }