Update localFavoriteFriends when adding to favs (#890)

This commit is contained in:
Nekromateion
2024-09-01 10:38:44 +02:00
committed by GitHub
parent 424a15fdc7
commit 734b2e3952
+7
View File
@@ -4239,6 +4239,13 @@ speechSynthesis.getVoices();
) { ) {
this.refreshFavoriteAvatars(args.params.tags); this.refreshFavoriteAvatars(args.params.tags);
} }
if (
args.params.type === 'friend' &&
$app.localFavoriteFriendsGroups.includes("friend:" + args.params.tags)
) {
$app.updateLocalFavoriteFriends();
}
}); });
API.$on('FAVORITE:DELETE', function (args) { API.$on('FAVORITE:DELETE', function (args) {