From d6200745c028dd47b4ce0f11eb396c8f2a4cf807 Mon Sep 17 00:00:00 2001 From: Anant Bhasin <38764067+aKn1ghtOut@users.noreply.github.com> Date: Fri, 2 Apr 2021 02:31:58 +0530 Subject: [PATCH] [FIX] Make attachment validation compatible with web client (#2927) * [FIX] Make attachment validation compatible with web client * Added stories Co-authored-by: Diego Mello --- .../__snapshots__/Storyshots.test.js.snap | 275 ++++++++++++++++++ app/containers/message/Attachments.js | 6 +- storybook/stories/Message.js | 31 +- 3 files changed, 301 insertions(+), 11 deletions(-) diff --git a/__tests__/__snapshots__/Storyshots.test.js.snap b/__tests__/__snapshots__/Storyshots.test.js.snap index d5d1d912ef..0327976068 100644 --- a/__tests__/__snapshots__/Storyshots.test.js.snap +++ b/__tests__/__snapshots__/Storyshots.test.js.snap @@ -29093,6 +29093,281 @@ exports[`Storyshots Message list message 1`] = ` + + + + + + + + + + + + + + + + diego.mello + + + + 10:00 AM + + + + + + Image should not render + + + + + + + + + + + { - if (file.image_url) { + if (file.type === 'file' && file.image_url) { return ; } - if (file.audio_url) { + if (file.type === 'file' && file.audio_url) { return