diff --git a/app/javascript/dashboard/components-next/message/bubbles/Email/Index.vue b/app/javascript/dashboard/components-next/message/bubbles/Email/Index.vue
index 5c83067f3..ea2f57f34 100644
--- a/app/javascript/dashboard/components-next/message/bubbles/Email/Index.vue
+++ b/app/javascript/dashboard/components-next/message/bubbles/Email/Index.vue
@@ -29,8 +29,15 @@ const isOutgoing = computed(() => {
});
const isIncoming = computed(() => !isOutgoing.value);
+const textToShow = computed(() => {
+ const text =
+ contentAttributes?.value?.email?.textContent?.full ?? content.value;
+ return text?.replace(/\n/g, '
');
+});
+
+// Use TextContent as the default to fullHTML
const fullHTML = computed(() => {
- return contentAttributes?.value?.email?.htmlContent?.full ?? content.value;
+ return contentAttributes?.value?.email?.htmlContent?.full ?? textToShow.value;
});
const unquotedHTML = computed(() => {
@@ -40,12 +47,6 @@ const unquotedHTML = computed(() => {
const hasQuotedMessage = computed(() => {
return EmailQuoteExtractor.hasQuotes(fullHTML.value);
});
-
-const textToShow = computed(() => {
- const text =
- contentAttributes?.value?.email?.textContent?.full ?? content.value;
- return text?.replace(/\n/g, '
');
-});