From e1d0bdbd9f525933ef9acf4e3256bda082fbf9ac Mon Sep 17 00:00:00 2001 From: mic Date: Wed, 18 Dec 2024 00:23:17 +0100 Subject: [PATCH] sending the messageId in the sendmessage data. see #183 --- js/mzta-menus.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/mzta-menus.js b/js/mzta-menus.js index 5753989d..908baec0 100644 --- a/js/mzta-menus.js +++ b/js/mzta-menus.js @@ -74,6 +74,7 @@ export class mzta_Menus { addAction = (curr_prompt) => { let curr_menu_entry = {id: curr_prompt.id, is_default: curr_prompt.is_default, name: curr_prompt.name}; + let curr_message = null; const getMailBody = async (tabs) => { //const tabs = await browser.tabs.query({ active: true, currentWindow: true }); @@ -125,7 +126,6 @@ export class mzta_Menus { // console.log(">>>>>>>>>> currPHs: " + JSON.stringify(currPHs)); let finalSubs = {}; let curr_messages = null; - let curr_message = null; switch(tabs[0].type){ case 'mail': curr_messages = await browser.mailTabs.getSelectedMessages(); @@ -231,7 +231,7 @@ export class mzta_Menus { // } this.logger.log("mail_tags: " + mail_tags); console.log(">>>>>>>>>>>> full_tags_list: " + JSON.stringify(full_tags_list)); - browser.tabs.sendMessage(tabs[0].id, {command: "getTags", tags: mail_tags }); + browser.tabs.sendMessage(tabs[0].id, {command: "getTags", tags: mail_tags, messageId: curr_message.id}); return {ok:'1'}; break; default: