mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-07 14:56:06 +02:00
Fix checkActiveFriends
This commit is contained in:
+9
-3
@@ -865,6 +865,8 @@ speechSynthesis.getVoices();
|
|||||||
last_platform: json.last_platform,
|
last_platform: json.last_platform,
|
||||||
date_joined: json.date_joined,
|
date_joined: json.date_joined,
|
||||||
allowAvatarCopying: json.allowAvatarCopying,
|
allowAvatarCopying: json.allowAvatarCopying,
|
||||||
|
userIcon: json.userIcon,
|
||||||
|
fallbackAvatar: json.fallbackAvatar,
|
||||||
isFriend: false,
|
isFriend: false,
|
||||||
location: $app.lastLocation.location
|
location: $app.lastLocation.location
|
||||||
});
|
});
|
||||||
@@ -4753,11 +4755,15 @@ speechSynthesis.getVoices();
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
$app.methods.checkActiveFriends = function () {
|
API.$on('USER:CURRENT', function (args) {
|
||||||
if (Array.isArray(API.currentUser.activeFriends) === false) {
|
$app.checkActiveFriends(args.json);
|
||||||
|
});
|
||||||
|
|
||||||
|
$app.methods.checkActiveFriends = function (ref) {
|
||||||
|
if (Array.isArray(ref.activeFriends) === false || !this.appInit) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
for (var userId of API.currentUser.activeFriends) {
|
for (var userId of ref.activeFriends) {
|
||||||
if (this.pendingActiveFriends.has(userId)) {
|
if (this.pendingActiveFriends.has(userId)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user