Misc fixes

This commit is contained in:
Natsumi
2025-07-22 01:53:48 +12:00
parent 4fd898d84d
commit b9b0cebd7f
11 changed files with 53 additions and 49 deletions
+1 -10
View File
@@ -369,9 +369,6 @@ export const useFriendStore = defineStore('Friend', () => {
function updateLocalFavoriteFriends() {
const favoriteStore = useFavoriteStore();
const { cachedFavorites } = favoriteStore;
generalSettingsStore.setLocalFavoriteFriendsGroups(
generalSettingsStore.localFavoriteFriendsGroups
);
state.localFavoriteFriends.clear();
for (const ref of cachedFavorites.values()) {
if (
@@ -1112,13 +1109,7 @@ export const useFriendStore = defineStore('Friend', () => {
}
const ref = userStore.cachedUsers.get(id);
if (typeof ref === 'undefined') {
try {
userRequest.getUser({
userId: id
});
} catch (err) {
console.error('Fetch user on add as friend', err);
}
// deleted account on friends list
return;
}
friendRequest