mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-05 22:36:05 +02:00
View orange status users in current instance, remove dupes
This commit is contained in:
+13
-3
@@ -7446,9 +7446,18 @@ speechSynthesis.getVoices();
|
|||||||
users.push((typeof ref === 'undefined')
|
users.push((typeof ref === 'undefined')
|
||||||
? API.currentUser
|
? API.currentUser
|
||||||
: ref);
|
: ref);
|
||||||
var playersInInstance = this.lastLocation.friendList;
|
var friendsInInstance = this.lastLocation.friendList;
|
||||||
for (var i = 0; i < playersInInstance.length; i++) {
|
for (var i = 0; i < friendsInInstance.length; i++) {
|
||||||
var player = playersInInstance[i];
|
var addUser = true;
|
||||||
|
var player = friendsInInstance[i];
|
||||||
|
for (var k = 0; k < D.users.length; k++) {
|
||||||
|
var user = D.users[k];
|
||||||
|
if (user.displayName === player) {
|
||||||
|
addUser = false;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (addUser) {
|
||||||
for (var ref of API.cachedUsers.values()) {
|
for (var ref of API.cachedUsers.values()) {
|
||||||
if (ref.displayName === player) {
|
if (ref.displayName === player) {
|
||||||
users.push(ref);
|
users.push(ref);
|
||||||
@@ -7457,6 +7466,7 @@ speechSynthesis.getVoices();
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
users.sort(compareByDisplayName);
|
users.sort(compareByDisplayName);
|
||||||
D.users = users;
|
D.users = users;
|
||||||
D.instance = {};
|
D.instance = {};
|
||||||
|
|||||||
Reference in New Issue
Block a user