cleanup some stuff, add new lines

This commit is contained in:
Doug Flowers 2024-11-19 16:59:59 -06:00
parent 4807e07d95
commit 409cd355b5
5 changed files with 12 additions and 18 deletions

View File

@ -131,20 +131,14 @@ export const useBskyUserManager = () => {
if (actionMode === ACTION_MODE.IMPORT_LIST) { if (actionMode === ACTION_MODE.IMPORT_LIST) {
const userDids = filteredUsers.map(user => user.did); const userDids = filteredUsers.map(user => user.did);
await chrome.runtime.sendMessage({
try { name: "createListAndAddUsers",
await chrome.runtime.sendMessage({ body: {
name: "createListAndAddUsers", name: listName,
body: { description: "List imported from Sky Follower Bridge",
name: listName, userDids,
description: "List imported from Sky Follower Bridge", },
userDids, });
},
});
console.log("List created and users added successfully");
} catch (error) {
console.error("Error creating list and adding users:", error);
}
return; return;
} }