Fix condition for handling replies from the compose window in message listener. See #353

This commit is contained in:
mic 2025-05-02 11:27:10 +02:00
parent 8f8c7e611d
commit d35f6dd08d

View file

@ -652,7 +652,7 @@ browser.runtime.onMessage.addListener((message, sender, sendResponse) => {
current_message = message; current_message = message;
current_tabId = message.tabId; current_tabId = message.tabId;
current_mailMessageId = message.mailMessageId; current_mailMessageId = message.mailMessageId;
if(current_mailMessageId == -1) { // we are using the reply from the compose window! if((current_mailMessageId == -1) && (current_action == '1')) { // we are using the reply from the compose window!
current_action = '2'; // replace text current_action = '2'; // replace text
} }
run(); run();