fix: display message content conditionally based on content type

Show `text` as is, render HTML with vue-letter
This commit is contained in:
Abhinav Raut
2025-11-03 13:11:53 +05:30
parent b8da96c1d1
commit 16fbfa7b7c
@@ -31,7 +31,15 @@
<hr class="mb-2" v-if="showEnvelope" />
<!-- Message Text -->
<div
v-if="message.content_type === 'text'"
class="mb-1 native-html break-all whitespace-pre-wrap"
:class="{ 'mb-3': message.attachments.length > 0 }"
>
{{ sanitizedMessageContent }}
</div>
<Letter
v-else
:html="sanitizedMessageContent"
:allowedSchemas="['cid', 'https', 'http', 'mailto']"
class="mb-1 native-html break-all"