Prevent the sidebar instance group title being shown as "Traveling"

This commit is contained in:
Natsumi
2025-01-27 12:12:31 +13:00
parent 72bb8c7cc0
commit ca6b52c053
2 changed files with 13 additions and 3 deletions
+12 -2
View File
@@ -23331,8 +23331,18 @@ console.log(`isLinux: ${LINUX}`);
$app.methods.getFriendsLocations = function (friendsArr) {
// prevent the instance title display as "Traveling".
return friendsArr.find((friend) => !friend.ref?.$location?.isTraveling)
?.ref?.location;
if (!friendsArr?.length) {
return '';
}
for (const friend of friendsArr) {
if (friend.ref?.location !== 'traveling') {
return friend.ref.location;
}
if ($utils.isRealInstance(friend.ref?.travelingToLocation)) {
return friend.ref.travelingToLocation;
}
}
return friendsArr[0].ref?.location;
};
// #endregion
+1 -1
View File
@@ -227,7 +227,7 @@
"vrchat_credits": "VRChat Credits",
"refresh": "Click to refresh",
"logout": "Logout",
"manage_gallery_icon": "Manage Photos/Icons/Emojis/Stickers",
"manage_gallery_icon": "Manage VRC+ Images",
"export_friend_list": "Export Friends List",
"export_own_avatars": "Export Own Avatars",
"discord_names": "Discord Names",