mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-07 06:56:04 +02:00
More bad temporary fixes
This commit is contained in:
+15
-3
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user