diff --git a/app/javascript/dashboard/components-next/message/bubbles/Email/EmailMeta.vue b/app/javascript/dashboard/components-next/message/bubbles/Email/EmailMeta.vue index d2a48290b..f4b863e64 100644 --- a/app/javascript/dashboard/components-next/message/bubbles/Email/EmailMeta.vue +++ b/app/javascript/dashboard/components-next/message/bubbles/Email/EmailMeta.vue @@ -26,7 +26,18 @@ const ccEmail = computed(() => { }); const senderName = computed(() => { - return sender.value.name ?? ''; + const fromEmailAddress = fromEmail.value[0] ?? ''; + const senderEmail = sender.value.email ?? ''; + + if (!fromEmailAddress && !senderEmail) return null; + + // if the sender of the conversation and the sender of this particular + // email are the same, only then we return the sender name + if (fromEmailAddress === senderEmail) { + return sender.value.name; + } + + return null; }); const bccEmail = computed(() => { @@ -59,11 +70,19 @@ const showMeta = computed(() => { :class="hasError ? 'text-n-ruby-11' : 'text-n-slate-11'" >