diff --git a/src/components/chat/ChatEditor.vue b/src/components/chat/ChatEditor.vue index 41bbf30..d19d541 100644 --- a/src/components/chat/ChatEditor.vue +++ b/src/components/chat/ChatEditor.vue @@ -135,7 +135,7 @@ const data = ref({ }) async function sendMessage() { - if (!data.value.content) return + if (!data.value.content && !data.value.attachments) return const url = channels.related.messages.edit_to ? `/api/channels/${channels.current.alias}/messages/${channels.related.messages.edit_to?.id}` diff --git a/src/components/chat/ChatMessage.vue b/src/components/chat/ChatMessage.vue index 207b8e1..7e59e5c 100644 --- a/src/components/chat/ChatMessage.vue +++ b/src/components/chat/ChatMessage.vue @@ -24,7 +24,12 @@ {{ createdAt }} #{{ props.item?.id }} -
{{ props.item?.content }}
+ +
+ +