mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-12-27 02:23:28 +08:00
fix(draft): prepareDraftForSyncback double checks quotes on send later
This commit is contained in:
parent
e6deb83440
commit
dcdfa230e8
1 changed files with 4 additions and 2 deletions
|
@ -35,7 +35,9 @@ export function isForwardedMessage({body, subject} = {}) {
|
|||
}
|
||||
|
||||
export function shouldAppendQuotedText({body = '', replyToMessageId = false} = {}) {
|
||||
return replyToMessageId && !body.includes('<div id="n1-quoted-text-marker">')
|
||||
return replyToMessageId &&
|
||||
!body.includes('<div id="n1-quoted-text-marker">') &&
|
||||
!body.includes(`nylas-quote-id-${replyToMessageId}`)
|
||||
}
|
||||
|
||||
export function messageMentionsAttachment({body} = {}) {
|
||||
|
@ -59,7 +61,7 @@ export function appendQuotedTextToDraft(draft) {
|
|||
.include(Message.attributes.body)
|
||||
.then((prevMessage) => {
|
||||
const quotedText = `
|
||||
<div class="gmail_quote">
|
||||
<div class="gmail_quote nylas-quote nylas-quote-id-${draft.replyToMessageId}">
|
||||
<br>
|
||||
${DOMUtils.escapeHTMLCharacters(prevMessage.replyAttributionLine())}
|
||||
<br>
|
||||
|
|
Loading…
Reference in a new issue