From 61d85f958d593c1678a1ed7e79b896e55d67e863 Mon Sep 17 00:00:00 2001 From: Chneemann Date: Thu, 13 Jun 2024 05:09:33 +0200 Subject: [PATCH] bugfixes --- .../attachments/attachments.component.html | 6 +++--- .../attachments/attachments.component.ts | 6 ------ src/assets/img/attachments/docx.png | Bin 0 -> 24936 bytes 3 files changed, 3 insertions(+), 9 deletions(-) create mode 100644 src/assets/img/attachments/docx.png diff --git a/src/app/components/main-chat/single-chat/attachments/attachments.component.html b/src/app/components/main-chat/single-chat/attachments/attachments.component.html index 81b9989..20c9356 100644 --- a/src/app/components/main-chat/single-chat/attachments/attachments.component.html +++ b/src/app/components/main-chat/single-chat/attachments/attachments.component.html @@ -12,7 +12,7 @@ }" (click)="showOverlay(filePath)" /> - } @if (['pdf', 'doc', 'txt'].includes(getFileType(filePath))) { + } @if (['pdf', 'doc', 'docx'].includes(getFileType(filePath))) { - } @if (['mp3', 'wav', 'wma'].includes(getFileType(filePath))) { + } @if (['mp3', 'wav'].includes(getFileType(filePath))) { - }@if (getFileType(filePath) === 'mp4') { + } @if (['mp4', 'wmv', 'avi'].includes(getFileType(filePath))) {