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