From 734b2e39528a49d1acb6da93c43747a7c4475341 Mon Sep 17 00:00:00 2001 From: Nekromateion <43814053+Nekromateion@users.noreply.github.com> Date: Sun, 1 Sep 2024 10:38:44 +0200 Subject: [PATCH] Update localFavoriteFriends when adding to favs (#890) --- html/src/app.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/html/src/app.js b/html/src/app.js index 1e7580ed..f3dd8b9d 100644 --- a/html/src/app.js +++ b/html/src/app.js @@ -4239,6 +4239,13 @@ speechSynthesis.getVoices(); ) { 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) {