diff --git a/frontend/app/javascript/dashboard/components-next/Conversation/ConversationCard/ConversationCard.vue b/frontend/app/javascript/dashboard/components-next/Conversation/ConversationCard/ConversationCard.vue index f9a2507a..04c2082d 100644 --- a/frontend/app/javascript/dashboard/components-next/Conversation/ConversationCard/ConversationCard.vue +++ b/frontend/app/javascript/dashboard/components-next/Conversation/ConversationCard/ConversationCard.vue @@ -4,6 +4,7 @@ import { getInboxIconByType } from 'dashboard/helper/inbox'; import { useRouter, useRoute } from 'vue-router'; import { frontendURL, conversationUrl } from 'dashboard/helper/URLHelper.js'; import { dynamicTime, shortTimestamp } from 'shared/helpers/timeHelper'; +import { getConversationContactDisplayName } from 'dashboard/helper/conversationHelper'; import Icon from 'dashboard/components-next/icon/Icon.vue'; import Avatar from 'dashboard/components-next/avatar/Avatar.vue'; @@ -37,7 +38,12 @@ const cardMessagePreviewWithMetaRef = ref(null); const currentContact = computed(() => props.contact); -const currentContactName = computed(() => currentContact.value?.name); +const currentContactName = computed(() => + getConversationContactDisplayName( + currentContact.value, + props.conversation?.id + ) +); const currentContactThumbnail = computed(() => currentContact.value?.thumbnail); const currentContactStatus = computed( () => currentContact.value?.availabilityStatus diff --git a/frontend/app/javascript/dashboard/components-next/Conversation/ConversationCard/ConversationCardExpanded.vue b/frontend/app/javascript/dashboard/components-next/Conversation/ConversationCard/ConversationCardExpanded.vue index 6260f3ed..a8ff16b3 100644 --- a/frontend/app/javascript/dashboard/components-next/Conversation/ConversationCard/ConversationCardExpanded.vue +++ b/frontend/app/javascript/dashboard/components-next/Conversation/ConversationCard/ConversationCardExpanded.vue @@ -1,6 +1,9 @@