Fix bulk unfriend and entering YouTube API key

This commit is contained in:
Natsumi
2025-10-28 15:49:01 +11:00
parent 58c5082a7b
commit 5c9de1adba
4 changed files with 15 additions and 10 deletions

View File

@@ -392,7 +392,7 @@
inputValue: pending.join('\r\n')
}
)
.then((action) => {
.then(({ action }) => {
if (action === 'confirm') {
bulkUnfriendSelection();
}
@@ -402,8 +402,10 @@
function bulkUnfriendSelection() {
friendsListTable.data.forEach((item) => {
if (item.$selected)
if (item.$selected) {
console.log(`Unfriending ${item.displayName} (${item.id})`);
friendRequest.deleteFriend({ userId: item.id }).then((args) => handleFriendDelete(args));
}
});
}