From f62dbca1f1d20d882bf19f82f9d5f97a4bf175ac Mon Sep 17 00:00:00 2001 From: Anant Bhasin Date: Sat, 20 Feb 2021 16:09:50 +0530 Subject: [PATCH 01/79] [FIX] Make attachment validation compatible with web client --- app/containers/message/Attachments.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/containers/message/Attachments.js b/app/containers/message/Attachments.js index 3d4ff48b4..0bcad59d6 100644 --- a/app/containers/message/Attachments.js +++ b/app/containers/message/Attachments.js @@ -15,13 +15,13 @@ const Attachments = React.memo(({ } return attachments.map((file, index) => { - if (file.image_url) { + if (file.type === 'file' && file.image_url) { return ; } - if (file.audio_url) { + if (file.type === 'file' && file.audio_url) { return