mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-07 14:56:06 +02:00
Add gamelog item type friend check
This commit is contained in:
+9
-5
@@ -3897,11 +3897,15 @@ speechSynthesis.getVoices();
|
|||||||
}
|
}
|
||||||
var isFriend = false;
|
var isFriend = false;
|
||||||
var isFavorite = false;
|
var isFavorite = false;
|
||||||
for (var ref of API.cachedUsers.values()) {
|
if ((ctx.type === 'OnPlayerJoined') ||
|
||||||
if (ref.displayName === ctx.data) {
|
(ctx.type === 'OnPlayerLeft') ||
|
||||||
isFriend = this.friends.has(ref.id);
|
(ctx.type === 'PortalSpawn')) {
|
||||||
isFavorite = API.cachedFavoritesByObjectId.has(ref.id);
|
for (var ref of API.cachedUsers.values()) {
|
||||||
break;
|
if (ref.displayName === ctx.data) {
|
||||||
|
isFriend = this.friends.has(ref.id);
|
||||||
|
isFavorite = API.cachedFavoritesByObjectId.has(ref.id);
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ((w < 20) && (wristFilter[ctx.type]) &&
|
if ((w < 20) && (wristFilter[ctx.type]) &&
|
||||||
|
|||||||
Reference in New Issue
Block a user