mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-06 06:46:04 +02:00
Enable adding friends to multiple local favorite groups and update instance activity charts to include all favorite friends.
This commit is contained in:
@@ -1536,15 +1536,6 @@ export const useFavoriteStore = defineStore('Favorite', () => {
|
||||
if (hasLocalFriendFavorite(userId, group)) {
|
||||
return;
|
||||
}
|
||||
for (const existingGroup in localFriendFavorites) {
|
||||
const members = localFriendFavorites[existingGroup];
|
||||
const idx = members?.indexOf(userId);
|
||||
if (idx !== undefined && idx !== -1) {
|
||||
members.splice(idx, 1);
|
||||
database.removeFriendFromLocalFavorites(userId, existingGroup);
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!localFriendFavorites[group]) {
|
||||
localFriendFavorites[group] = [];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user