mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-07 14:56:06 +02:00
Fix removing local favorited avatars from cache
This commit is contained in:
+2
-2
@@ -27,7 +27,7 @@ import * as localizedStrings from './localization/localizedStrings.js';
|
|||||||
import removeConfusables, {
|
import removeConfusables, {
|
||||||
removeWhitespace
|
removeWhitespace
|
||||||
} from './libsAndLolisAndSugoiLibs/confusables.js';
|
} from './libsAndLolisAndSugoiLibs/confusables.js';
|
||||||
import _utils from './classes/utils.js';
|
import $utils from './classes/utils.js';
|
||||||
import _apiInit from './classes/apiInit.js';
|
import _apiInit from './classes/apiInit.js';
|
||||||
import _apiRequestHandler from './classes/apiRequestHandler.js';
|
import _apiRequestHandler from './classes/apiRequestHandler.js';
|
||||||
import _vrcxJsonStorage from './classes/vrcxJsonStorage.js';
|
import _vrcxJsonStorage from './classes/vrcxJsonStorage.js';
|
||||||
@@ -90,7 +90,6 @@ speechSynthesis.getVoices();
|
|||||||
// everything in this program is global stored in $app, I hate it, it is what it is
|
// everything in this program is global stored in $app, I hate it, it is what it is
|
||||||
let $app = {};
|
let $app = {};
|
||||||
const API = new _apiInit($app);
|
const API = new _apiInit($app);
|
||||||
const $utils = new _utils().$utils;
|
|
||||||
const vrcxJsonStorage = new _vrcxJsonStorage(VRCXStorage);
|
const vrcxJsonStorage = new _vrcxJsonStorage(VRCXStorage);
|
||||||
|
|
||||||
let vrcxClasses = {
|
let vrcxClasses = {
|
||||||
@@ -17501,6 +17500,7 @@ speechSynthesis.getVoices();
|
|||||||
if (
|
if (
|
||||||
!API.cachedFavoritesByObjectId.has(id) &&
|
!API.cachedFavoritesByObjectId.has(id) &&
|
||||||
ref.authorId !== API.currentUser.id &&
|
ref.authorId !== API.currentUser.id &&
|
||||||
|
!this.localAvatarFavoritesList.includes(id) &&
|
||||||
!$app.avatarHistory.has(id)
|
!$app.avatarHistory.has(id)
|
||||||
) {
|
) {
|
||||||
API.cachedAvatars.delete(id);
|
API.cachedAvatars.delete(id);
|
||||||
|
|||||||
Reference in New Issue
Block a user