|
|
@ -576,12 +576,20 @@ class MessageTemplate extends LitElement { |
|
|
|
${repliedToData.senderName ?? cropAddress(repliedToData.sender)} |
|
|
|
${repliedToData.senderName ?? cropAddress(repliedToData.sender)} |
|
|
|
</p> |
|
|
|
</p> |
|
|
|
<p class="replied-message"> |
|
|
|
<p class="replied-message"> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
${version.toString() === '1' ? html` |
|
|
|
|
|
|
|
${repliedToData.decodedMessage.messageText} |
|
|
|
|
|
|
|
` : ''}
|
|
|
|
|
|
|
|
${version.toString() === '2' ? html` |
|
|
|
${unsafeHTML(generateHTML(repliedToData.decodedMessage.messageText, [ |
|
|
|
${unsafeHTML(generateHTML(repliedToData.decodedMessage.messageText, [ |
|
|
|
StarterKit, |
|
|
|
StarterKit, |
|
|
|
Underline, |
|
|
|
Underline, |
|
|
|
Highlight |
|
|
|
Highlight |
|
|
|
// other extensions …
|
|
|
|
// other extensions …
|
|
|
|
]))} |
|
|
|
]))} |
|
|
|
|
|
|
|
` : ''}
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ${repliedToData.decodedMessage.messageText} --> |
|
|
|
<!-- ${repliedToData.decodedMessage.messageText} --> |
|
|
|
</p> |
|
|
|
</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -617,8 +625,12 @@ class MessageTemplate extends LitElement { |
|
|
|
id="messageContent"
|
|
|
|
id="messageContent"
|
|
|
|
class="message"
|
|
|
|
class="message"
|
|
|
|
style=${(image && replacedMessage !== "") &&"margin-top: 15px;"}> |
|
|
|
style=${(image && replacedMessage !== "") &&"margin-top: 15px;"}> |
|
|
|
|
|
|
|
${version.toString() === '2' ? html` |
|
|
|
${unsafeHTML(messageVersion2)} |
|
|
|
${unsafeHTML(messageVersion2)} |
|
|
|
|
|
|
|
` : ''}
|
|
|
|
|
|
|
|
${version.toString() === '1' ? html` |
|
|
|
|
|
|
|
${unsafeHTML(this.emojiPicker.parse(replacedMessage))} |
|
|
|
|
|
|
|
` : ''}
|
|
|
|
<div class="${((this.isFirstMessage === false &&
|
|
|
|
<div class="${((this.isFirstMessage === false &&
|
|
|
|
this.isSingleMessageInGroup === true &&
|
|
|
|
this.isSingleMessageInGroup === true &&
|
|
|
|
this.isLastMessageInGroup === true) ||
|
|
|
|
this.isLastMessageInGroup === true) ||
|
|
|
|