mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-06 14:46:04 +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) {
|
$app.methods.getFriendsLocations = function (friendsArr) {
|
||||||
// prevent the instance title display as "Traveling".
|
// prevent the instance title display as "Traveling".
|
||||||
return friendsArr.find((friend) => !friend.ref?.$location?.isTraveling)
|
if (!friendsArr?.length) {
|
||||||
?.ref?.location;
|
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
|
// #endregion
|
||||||
|
|||||||
@@ -227,7 +227,7 @@
|
|||||||
"vrchat_credits": "VRChat Credits",
|
"vrchat_credits": "VRChat Credits",
|
||||||
"refresh": "Click to refresh",
|
"refresh": "Click to refresh",
|
||||||
"logout": "Logout",
|
"logout": "Logout",
|
||||||
"manage_gallery_icon": "Manage Photos/Icons/Emojis/Stickers",
|
"manage_gallery_icon": "Manage VRC+ Images",
|
||||||
"export_friend_list": "Export Friends List",
|
"export_friend_list": "Export Friends List",
|
||||||
"export_own_avatars": "Export Own Avatars",
|
"export_own_avatars": "Export Own Avatars",
|
||||||
"discord_names": "Discord Names",
|
"discord_names": "Discord Names",
|
||||||
|
|||||||
Reference in New Issue
Block a user