refactor: use bskyClient

This commit is contained in:
kawamataryo
2024-11-28 12:54:58 +09:00
parent f637e48f3a
commit 93b4d2f8ae
2 changed files with 4 additions and 42 deletions

View File

@@ -131,13 +131,10 @@ export const useBskyUserManager = () => {
if (actionMode === ACTION_MODE.IMPORT_LIST) {
const userDids = filteredUsers.map((user) => user.did);
await chrome.runtime.sendMessage({
name: "createListAndAddUsers",
body: {
name: listName,
description: "List imported via Sky Follower Bridge",
userDids,
},
await bskyClient.current.createListAndAddUsers({
name: listName,
description: "List imported via Sky Follower Bridge",
userDids,
});
return;
}