Small changes

This commit is contained in:
Natsumi
2021-06-06 17:36:59 +12:00
parent 8e8552b631
commit 208c1a2f25
4 changed files with 37 additions and 18 deletions

View File

@@ -1237,9 +1237,6 @@ speechSynthesis.getVoices();
if (ref.location !== ref.$location.tag) {
ref.$location = this.parseLocation(ref.location);
}
if (ref.statusDescription) {
ref.statusDescription = ref.statusDescription.substring(0, 32);
}
ref.$isVRCPlus = ref.tags.includes('system_supporter');
this.applyUserTrustLevel(ref);
this.applyUserLanguage(ref);
@@ -5402,7 +5399,8 @@ speechSynthesis.getVoices();
});
}
} else {
if (ctx.state === 'online' && newState === 'active') {
//prevent status flapping
if ((ctx.state === 'online') && ((newState === 'active') || (newState === 'offline'))) {
this.updateFriendInProgress.delete(id);
await new Promise(resolve => setTimeout(resolve, 50000));
if (this.APILastOnline.has(id)) {
@@ -11616,12 +11614,13 @@ speechSynthesis.getVoices();
$app.methods.displayPreviousImages = function (type, command) {
this.previousImagesTableFileId = '';
this.previousImagesTable = '';
var imageUrl = '';
if (type === 'Avatar') {
var { imageUrl } = this.avatarDialog.ref;
} else if (type === 'World') {
var { imageUrl } = this.worldDialog.ref;
} else if (type === 'User') {
var imageUrl = this.userDialog.ref.currentAvatarImageUrl;
imageUrl = this.userDialog.ref.currentAvatarImageUrl;
}
var fileId = extractFileId(imageUrl);
if (!fileId) {
@@ -11641,7 +11640,7 @@ speechSynthesis.getVoices();
}
API.getAvatarImages(params).then((args) => {
this.previousImagesTableFileId = args.json.id;
var images = args.json.versions;
var images = args.json.versions.reverse();
this.checkPreviousImageAvailable(images, command);
});
} else if (type === 'World') {
@@ -11651,13 +11650,13 @@ speechSynthesis.getVoices();
}
API.getWorldImages(params).then((args) => {
this.previousImagesTableFileId = args.json.id;
var images = args.json.versions;
var images = args.json.versions.reverse();
this.checkPreviousImageAvailable(images, command);
});
} else if (type === 'User') {
API.getAvatarImages(params).then((args) => {
this.previousImagesTableFileId = args.json.id;
var images = args.json.versions;
var images = args.json.versions.reverse();
this.checkPreviousImageAvailable(images, command);
});
}
@@ -12194,6 +12193,11 @@ speechSynthesis.getVoices();
$app.data.downloadQueue = new Map();
$app.data.downloadCurrent = {};
var downloadProgressUpdateWrist = function () {
sharedRepository.setInt('downloadProgress', this.downloadProgress);
};
$app.watch.downloadProgress = downloadProgressUpdateWrist;
$app.methods.downloadVRChatCacheProgress = async function () {
var downloadProgress = await AssetBundleCacher.CheckDownloadProgress();
switch (downloadProgress) {