mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-02 21:16:07 +02:00
Prevent the sidebar instance group title being shown as "Traveling"
This commit is contained in:
+12
-2
@@ -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
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user