Fix condition for handling replies from the compose window in message listener. See #353
This commit is contained in:
parent
8f8c7e611d
commit
d35f6dd08d
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue