Chat attachments

This commit is contained in:
2024-03-31 00:07:04 +08:00
parent a5efec89f2
commit 634fedf17c
7 changed files with 313 additions and 12 deletions

View File

@@ -12,11 +12,19 @@
<div class="flex-grow-1">
<div class="font-bold text-sm">{{ props.item?.sender.account.nick }}</div>
<div>{{ props.item?.content }}</div>
<message-attachment
v-if="props.item?.attachments && props.item?.attachments.length > 0"
class="mt-1"
:attachments="props.item?.attachments"
/>
</div>
</div>
</template>
<script setup lang="ts">
import MessageAttachment from "@/components/chat/renderer/MessageAttachment.vue"
const props = defineProps<{ item: any }>()
</script>