Fix manage cache, OnPlayerLeft notification

This commit is contained in:
Natsumi
2024-11-23 00:13:17 +13:00
parent 265a6f88ed
commit 654872fc30
3 changed files with 19 additions and 6 deletions

View File

@@ -4673,7 +4673,9 @@ speechSynthesis.getVoices();
this.updateOnlineFriendCoutner();
}
ctx.state = newState;
ctx.name = ref.displayName;
if (ref?.displayName) {
ctx.name = ref.displayName;
}
ctx.isVIP = isVIP;
};
@@ -5525,6 +5527,9 @@ speechSynthesis.getVoices();
`${ref.displayName} GPS ${previousLocation} -> ${newLocation}`
);
}
if (previousLocation === 'offline') {
previousLocation = '';
}
if (!previousLocation) {
// no previous location
if ($app.debugFriendState) {
@@ -16726,7 +16731,8 @@ speechSynthesis.getVoices();
};
$app.methods.sweepVRChatCache = async function () {
await AssetBundleCacher.SweepCache();
var output = await AssetBundleCacher.SweepCache();
console.log('SweepCache', output);
if (this.VRChatConfigDialog.visible) {
this.getVRChatCacheSize();
}