mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-19 14:53:50 +02:00
Do not show "Hidden Mutual" in Mutual friend graph (#1528)
This commit is contained in:
@@ -203,7 +203,8 @@
|
|||||||
}
|
}
|
||||||
const friendEntry = friends.value?.get ? friends.value.get(friendId) : undefined;
|
const friendEntry = friends.value?.get ? friends.value.get(friendId) : undefined;
|
||||||
const fallbackRef = friendEntry?.ref || cachedUsers.get(friendId);
|
const fallbackRef = friendEntry?.ref || cachedUsers.get(friendId);
|
||||||
const normalizedMutuals = Array.isArray(mutualIds) ? mutualIds : [];
|
let normalizedMutuals = Array.isArray(mutualIds) ? mutualIds : [];
|
||||||
|
normalizedMutuals = normalizedMutuals.filter((id) => id != "usr_00000000-0000-0000-0000-000000000000");
|
||||||
mutualMap.set(friendId, {
|
mutualMap.set(friendId, {
|
||||||
friend: friendEntry || (fallbackRef ? { id: friendId, ref: fallbackRef } : { id: friendId }),
|
friend: friendEntry || (fallbackRef ? { id: friendId, ref: fallbackRef } : { id: friendId }),
|
||||||
mutuals: normalizedMutuals.map((id) => ({ id }))
|
mutuals: normalizedMutuals.map((id) => ({ id }))
|
||||||
|
|||||||
Reference in New Issue
Block a user