getmailbody calls fixed see #680
This commit is contained in:
parent
7b99c1c5b3
commit
e4f8fcf678
1 changed files with 2 additions and 2 deletions
|
|
@ -151,7 +151,7 @@ export const taPromptUtils = {
|
||||||
|
|
||||||
const messages_list = [];
|
const messages_list = [];
|
||||||
for (let entry of messageDataArray) {
|
for (let entry of messageDataArray) {
|
||||||
const bodyHtml = getMailBody(entry.fullMessage);
|
const bodyHtml = await getMailBody(entry.fullMessage);
|
||||||
let bodyText = htmlBodyToPlainText(bodyHtml.html);
|
let bodyText = htmlBodyToPlainText(bodyHtml.html);
|
||||||
if (bodyText.length === 0) {
|
if (bodyText.length === 0) {
|
||||||
bodyText = bodyHtml.text || '';
|
bodyText = bodyHtml.text || '';
|
||||||
|
|
@ -182,7 +182,7 @@ export const taPromptUtils = {
|
||||||
promptText = browser.i18n.getMessage('prompt_translate_this_full_text');
|
promptText = browser.i18n.getMessage('prompt_translate_this_full_text');
|
||||||
}
|
}
|
||||||
|
|
||||||
const bodyHtml = getMailBody(fullMessage);
|
const bodyHtml = await getMailBody(fullMessage);
|
||||||
const mailSubject = fullMessage.headers?.subject?.[0] || '';
|
const mailSubject = fullMessage.headers?.subject?.[0] || '';
|
||||||
|
|
||||||
const finalSubs = await placeholdersUtils.getPlaceholdersValues({
|
const finalSubs = await placeholdersUtils.getPlaceholdersValues({
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue