mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-06 22:46:06 +02:00
Fix VRC+ Groups not caching avatar info
This commit is contained in:
+23
-4
@@ -2538,6 +2538,7 @@ speechSynthesis.getVoices();
|
|||||||
'world': [0, 'getFavoriteWorlds'],
|
'world': [0, 'getFavoriteWorlds'],
|
||||||
'avatar': [0, 'getFavoriteAvatars']
|
'avatar': [0, 'getFavoriteAvatars']
|
||||||
};
|
};
|
||||||
|
var tags = [];
|
||||||
for (var ref of this.cachedFavorites.values()) {
|
for (var ref of this.cachedFavorites.values()) {
|
||||||
if (ref.$isDeleted) {
|
if (ref.$isDeleted) {
|
||||||
continue;
|
continue;
|
||||||
@@ -2546,19 +2547,37 @@ speechSynthesis.getVoices();
|
|||||||
if (type === undefined) {
|
if (type === undefined) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
if ((ref.type === 'avatar') && (!tags.includes(ref.tags[0]))) {
|
||||||
|
tags.push(ref.tags[0]);
|
||||||
|
}
|
||||||
++type[0];
|
++type[0];
|
||||||
}
|
}
|
||||||
for (var type in types) {
|
for (var type in types) {
|
||||||
var [N, fn] = types[type];
|
var [N, fn] = types[type];
|
||||||
if (N > 0) {
|
if (N > 0) {
|
||||||
this.bulk({
|
if (type === 'avatar') {
|
||||||
fn,
|
tags.forEach((tag) => {
|
||||||
N,
|
this.bulk({
|
||||||
|
fn,
|
||||||
|
N,
|
||||||
|
params: {
|
||||||
|
n: 100,
|
||||||
|
offset: 0,
|
||||||
|
tag: tag
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
this.bulk({
|
||||||
|
fn,
|
||||||
|
N,
|
||||||
params: {
|
params: {
|
||||||
n: 100,
|
n: 100,
|
||||||
offset: 0
|
offset: 0
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user