refactor sendEventAsync, add action parameters

This commit is contained in:
qcrao
2024-07-25 15:36:50 +08:00
parent 123524c629
commit 300e1fb2c5
3 changed files with 7 additions and 5 deletions

View File

@@ -11,6 +11,8 @@ async function bulkArchiveConversations() {
console.log("Selected Conversations:", selectedConversations);
sendEventAsync("archive", selectedConversations.length);
for (const element of selectedConversations) {
await archiveConversation(element);
}