feat: make content optional

This commit is contained in:
Shivam Mishra
2024-11-28 17:40:19 +05:30
parent 600b06f748
commit 0d40f2a027
2 changed files with 58 additions and 2 deletions
@@ -64,8 +64,8 @@ const recordings = computed(() => {
<template>
<BaseBubble class="p-3">
<span v-html="formattedContent" />
<div v-if="mediaAttachments.length" class="mt-[10px] flex gap-[10px]">
<span v-if="content" class="mb-[10px]" v-html="formattedContent" />
<div v-if="mediaAttachments.length" class="flex gap-[10px]">
<template v-for="attachment in mediaAttachments" :key="attachment.id">
<ImageChip
v-if="attachment.fileType === ATTACHMENT_TYPES.IMAGE"
@@ -81,6 +81,7 @@ const recordings = computed(() => {
<AudioChip
v-for="attachment in recordings"
:key="attachment.id"
class="bg-n-alpha-3 text-n-slate-12"
:attachment="attachment"
/>
</div>