Small fixes

This commit is contained in:
Natsumi
2023-06-28 09:13:52 +12:00
parent b2942e5981
commit 825377463e
4 changed files with 24 additions and 18 deletions

View File

@@ -1644,6 +1644,7 @@ speechSynthesis.getVoices();
}
} else {
ref = {
acceptedPrivacyVersion: 0,
acceptedTOSVersion: 0,
accountDeletionDate: null,
accountDeletionLog: null,
@@ -17013,6 +17014,7 @@ speechSynthesis.getVoices();
return;
}
D.ref = ref;
D.avatarScaling = ref.tags?.includes('feature_avatar_scaling');
$app.applyWorldDialogInstances();
for (var room of D.rooms) {
if ($app.isRealInstance(room.tag)) {
@@ -18822,10 +18824,7 @@ speechSynthesis.getVoices();
return;
}
var shortName = args.json.shortName;
var secureOrShortName = shortName;
if (!shortName) {
secureOrShortName = args.json.secureName;
}
var secureOrShortName = args.json.shortName || args.json.secureName;
var location = `${args.instance.worldId}:${args.instance.instanceId}`;
if (location === $app.launchDialog.tag) {
var L = this.parseLocation(location);
@@ -18910,13 +18909,17 @@ speechSynthesis.getVoices();
desktopMode
) {
var D = this.launchDialog;
var L = API.parseLocation(location);
var args = [];
if (shortName) {
if (
shortName &&
L.instanceType !== 'public' &&
L.groupAccessType !== 'public'
) {
args.push(`vrchat://launch?id=${location}&shortName=${shortName}`);
} else {
// fetch shortName
var newShortName = '';
var L = API.parseLocation(location);
var response = await API.getInstanceShortName({
worldId: L.worldId,
instanceId: L.instanceId
@@ -22370,6 +22373,7 @@ speechSynthesis.getVoices();
this.galleryDialogVisible = true;
this.refreshGalleryTable();
this.refreshVRCPlusIconsTable();
this.refreshEmojiTable();
};
$app.methods.refreshGalleryTable = function () {