reduce favorite tab memory usage

This commit is contained in:
pa
2025-10-28 10:57:22 +09:00
committed by Natsumi
parent d0cc76eb84
commit f5f60b048c
2 changed files with 23 additions and 21 deletions
+1 -2
View File
@@ -241,9 +241,8 @@ export const useFriendStore = defineStore('Friend', () => {
function updateLocalFavoriteFriends() {
const favoriteStore = useFavoriteStore();
const { cachedFavorites } = favoriteStore;
localFavoriteFriends.value.clear();
for (const ref of cachedFavorites.values()) {
for (const ref of favoriteStore.cachedFavorites.values()) {
if (
!ref.$isDeleted &&
ref.type === 'friend' &&