From 8649c17f0c3aff4143bace5065f1fef2ee52c090 Mon Sep 17 00:00:00 2001 From: Diego Mello Date: Mon, 5 Apr 2021 14:36:04 -0300 Subject: [PATCH] Revert "[FIX] Make attachment validation compatible with web client (#2927)" (#3036) This reverts commit d6200745c028dd47b4ce0f11eb396c8f2a4cf807. --- .../__snapshots__/Storyshots.test.js.snap | 275 ------------------ app/containers/message/Attachments.js | 6 +- storybook/stories/Message.js | 31 +- 3 files changed, 11 insertions(+), 301 deletions(-) diff --git a/__tests__/__snapshots__/Storyshots.test.js.snap b/__tests__/__snapshots__/Storyshots.test.js.snap index 032797606..d5d1d912e 100644 --- a/__tests__/__snapshots__/Storyshots.test.js.snap +++ b/__tests__/__snapshots__/Storyshots.test.js.snap @@ -29093,281 +29093,6 @@ exports[`Storyshots Message list message 1`] = ` - - - - - - - - - - - - - - - - diego.mello - - - - 10:00 AM - - - - - - Image should not render - - - - - - - - - - - { - if (file.type === 'file' && file.image_url) { + if (file.image_url) { return ; } - if (file.type === 'file' && file.audio_url) { + if (file.audio_url) { return