Support custom instance names

This commit is contained in:
Natsumi
2025-09-28 11:35:49 +13:00
parent 81a51ad2fa
commit da3c12c15b
10 changed files with 148 additions and 50 deletions

View File

@@ -316,6 +316,11 @@ export const useVrcxStore = defineStore('Vrcx', () => {
}
});
instanceStore.cachedInstances.forEach((ref, id) => {
if (
friendStore.friends.values().some((f) => f.$location.tag === id)
) {
return;
}
// delete instances over an hour old
if (Date.parse(ref.$fetchedAt) < Date.now() - 3600000) {
instanceStore.cachedInstances.delete(id);