mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-06 14:46:04 +02:00
Fix instance userCount not updating
This commit is contained in:
@@ -675,7 +675,7 @@ export const useInstanceStore = defineStore('Instance', () => {
|
|||||||
for (const room of rooms) {
|
for (const room of rooms) {
|
||||||
ref = cachedInstances.get(room.tag);
|
ref = cachedInstances.get(room.tag);
|
||||||
if (typeof ref !== 'undefined') {
|
if (typeof ref !== 'undefined') {
|
||||||
room.ref = ref;
|
Object.assign(room.ref, ref);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
rooms.sort(function (a, b) {
|
rooms.sort(function (a, b) {
|
||||||
|
|||||||
+11
-5
@@ -193,7 +193,15 @@ export const useUserStore = defineStore('User', () => {
|
|||||||
$location: {},
|
$location: {},
|
||||||
$homeLocationName: '',
|
$homeLocationName: '',
|
||||||
users: [],
|
users: [],
|
||||||
instance: {},
|
instance: {
|
||||||
|
id: '',
|
||||||
|
tag: '',
|
||||||
|
$location: {},
|
||||||
|
friendCount: 0,
|
||||||
|
users: [],
|
||||||
|
shortName: '',
|
||||||
|
ref: {}
|
||||||
|
},
|
||||||
worlds: [],
|
worlds: [],
|
||||||
avatars: [],
|
avatars: [],
|
||||||
isWorldsLoading: false,
|
isWorldsLoading: false,
|
||||||
@@ -1118,10 +1126,8 @@ export const useUserStore = defineStore('User', () => {
|
|||||||
ref: {}
|
ref: {}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
const instanceRef = instanceStore.cachedInstances.get(L.tag);
|
const instanceRef = instanceStore.cachedInstances.get(L.tag) || {};
|
||||||
if (typeof instanceRef !== 'undefined') {
|
Object.assign(D.instance.ref, instanceRef);
|
||||||
D.instance.ref = instanceRef;
|
|
||||||
}
|
|
||||||
D.instance.friendCount = friendCount;
|
D.instance.friendCount = friendCount;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user