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 ;
}
- if (file.type === 'file' && file.video_url) {
+ if (file.video_url) {
return ;
}
diff --git a/storybook/stories/Message.js b/storybook/stories/Message.js
index 5fc6663d0..7be131dbc 100644
--- a/storybook/stories/Message.js
+++ b/storybook/stories/Message.js
@@ -346,21 +346,13 @@ export default ({ theme }) => {
attachments={[{
title: 'This is a title',
description: 'This is a description',
- image_url: '/dummypath',
- type: 'file'
+ image_url: '/dummypath'
}]}
/>
-
@@ -370,15 +362,13 @@ export default ({ theme }) => {
attachments={[{
title: 'This is a title',
description: 'This is a description :nyan_rocket:',
- video_url: '/dummypath',
- type: 'file'
+ video_url: '/dummypath'
}]}
/>
@@ -387,8 +377,7 @@ export default ({ theme }) => {
attachments={[{
title: 'This is a title',
description: 'This is a description :nyan_rocket:',
- audio_url: '/dummypath',
- type: 'file'
+ audio_url: '/dummypath'
}]}
/>
@@ -396,24 +385,21 @@ export default ({ theme }) => {
attachments={[{
title: 'This is a title',
description: 'This is a description',
- audio_url: '/dummypath',
- type: 'file'
+ audio_url: '/dummypath'
}]}
isHeader={false}
/>
@@ -579,8 +565,7 @@ export default ({ theme }) => {
attachments={[{
title: 'This is a title',
description: 'This is a description',
- audio_url: '/file-upload/c4wcNhrbXJLBvAJtN/1535569819516.aac',
- type: 'file'
+ audio_url: '/file-upload/c4wcNhrbXJLBvAJtN/1535569819516.aac'
}]}
tmid='1'
isThreadSequential