fix: attachments check

This commit is contained in:
Shivam Mishra
2024-12-06 18:51:42 +05:30
parent bcc03a79f7
commit 97ae755783
@@ -54,7 +54,7 @@ const previewMessage = computed(() => {
const { content, attachments } = inReplyTo;
if (content) return content;
if (attachments.length) {
if (attachments?.length) {
const [{ fileType } = {}] = inReplyTo.attachments;
return t(`CHAT_LIST.ATTACHMENTS.${fileType}.CONTENT`);
}