diff --git a/src/stores/group.js b/src/stores/group.js index b96708cc..31418778 100644 --- a/src/stores/group.js +++ b/src/stores/group.js @@ -187,13 +187,15 @@ export const useGroupStore = defineStore('Group', () => { D.ownerDisplayName = args.ref.ownerId; D.visible = true; D.loading = false; + if (args.cache) { + groupRequest.getGroup(args.params); + } userRequest .getCachedUser({ userId: args.ref.ownerId }) .then((args1) => { D.ownerDisplayName = args1.ref.displayName; - return args1; }); database.getLastGroupVisit(D.ref.name).then((r) => { if (D.id === args.ref.id) { diff --git a/src/stores/user.js b/src/stores/user.js index c4a9a86d..3589724d 100644 --- a/src/stores/user.js +++ b/src/stores/user.js @@ -919,6 +919,9 @@ export const useUserStore = defineStore('User', () => { if (locationStore.lastLocation.playerList.has(D.ref.id)) { inCurrentWorld = true; } + if (args.cache) { + userRequest.getUser(args.params); + } if (userId !== currentUser.value.id) { database .getUserStats(D.ref, inCurrentWorld) diff --git a/src/stores/world.js b/src/stores/world.js index 270d8c97..ba7d87bc 100644 --- a/src/stores/world.js +++ b/src/stores/world.js @@ -200,11 +200,8 @@ export const useWorldStore = defineStore('World', () => { if (args.cache) { worldRequest.getWorld(args.params).then((args1) => { if (D.id === args1.ref.id) { - D.loading = false; - D.ref = args1.ref; updateVRChatWorldCache(); } - return args1; }); } }