mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-07 06:56:04 +02:00
revert: remove unnecessary getUser
This commit is contained in:
+3
-1
@@ -187,13 +187,15 @@ export const useGroupStore = defineStore('Group', () => {
|
|||||||
D.ownerDisplayName = args.ref.ownerId;
|
D.ownerDisplayName = args.ref.ownerId;
|
||||||
D.visible = true;
|
D.visible = true;
|
||||||
D.loading = false;
|
D.loading = false;
|
||||||
|
if (args.cache) {
|
||||||
|
groupRequest.getGroup(args.params);
|
||||||
|
}
|
||||||
userRequest
|
userRequest
|
||||||
.getCachedUser({
|
.getCachedUser({
|
||||||
userId: args.ref.ownerId
|
userId: args.ref.ownerId
|
||||||
})
|
})
|
||||||
.then((args1) => {
|
.then((args1) => {
|
||||||
D.ownerDisplayName = args1.ref.displayName;
|
D.ownerDisplayName = args1.ref.displayName;
|
||||||
return args1;
|
|
||||||
});
|
});
|
||||||
database.getLastGroupVisit(D.ref.name).then((r) => {
|
database.getLastGroupVisit(D.ref.name).then((r) => {
|
||||||
if (D.id === args.ref.id) {
|
if (D.id === args.ref.id) {
|
||||||
|
|||||||
@@ -919,6 +919,9 @@ export const useUserStore = defineStore('User', () => {
|
|||||||
if (locationStore.lastLocation.playerList.has(D.ref.id)) {
|
if (locationStore.lastLocation.playerList.has(D.ref.id)) {
|
||||||
inCurrentWorld = true;
|
inCurrentWorld = true;
|
||||||
}
|
}
|
||||||
|
if (args.cache) {
|
||||||
|
userRequest.getUser(args.params);
|
||||||
|
}
|
||||||
if (userId !== currentUser.value.id) {
|
if (userId !== currentUser.value.id) {
|
||||||
database
|
database
|
||||||
.getUserStats(D.ref, inCurrentWorld)
|
.getUserStats(D.ref, inCurrentWorld)
|
||||||
|
|||||||
@@ -200,11 +200,8 @@ export const useWorldStore = defineStore('World', () => {
|
|||||||
if (args.cache) {
|
if (args.cache) {
|
||||||
worldRequest.getWorld(args.params).then((args1) => {
|
worldRequest.getWorld(args.params).then((args1) => {
|
||||||
if (D.id === args1.ref.id) {
|
if (D.id === args1.ref.id) {
|
||||||
D.loading = false;
|
|
||||||
D.ref = args1.ref;
|
|
||||||
updateVRChatWorldCache();
|
updateVRChatWorldCache();
|
||||||
}
|
}
|
||||||
return args1;
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user