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