mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-11 00:14:50 +03:00
Bugfix the new msgId handling due to Squire sanitizeToDOMFragment using cleanHTML
This commit is contained in:
parent
584728bc89
commit
f7f8d2d542
1 changed files with 4 additions and 2 deletions
|
|
@ -239,6 +239,8 @@ export const
|
|||
linkedData: []
|
||||
},
|
||||
|
||||
isMsg = !!msgId,
|
||||
|
||||
findAttachmentByCid = cId => oAttachments.findByCid(cId),
|
||||
findLocationByCid = cId => {
|
||||
const attachment = findAttachmentByCid(cId);
|
||||
|
|
@ -358,7 +360,7 @@ export const
|
|||
});
|
||||
*/
|
||||
|
||||
msgId && [...tmpl.content.querySelectorAll('*')].forEach(oElement => {
|
||||
isMsg && [...tmpl.content.querySelectorAll('*')].forEach(oElement => {
|
||||
const name = oElement.tagName,
|
||||
oStyle = oElement.style;
|
||||
|
||||
|
|
@ -633,7 +635,7 @@ export const
|
|||
}
|
||||
});
|
||||
|
||||
msgId && blockquoteSwitcher();
|
||||
isMsg && blockquoteSwitcher();
|
||||
|
||||
// return tmpl.content.firstChild;
|
||||
result.html = tmpl.innerHTML.trim();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue