✨ Chat attachments
This commit is contained in:
@@ -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>
|
||||
|
||||
|
Reference in New Issue
Block a user