diff --git a/__tests__/__snapshots__/Storyshots.test.js.snap b/__tests__/__snapshots__/Storyshots.test.js.snap
index ac8bb8e8a..7d0605ac7 100644
--- a/__tests__/__snapshots__/Storyshots.test.js.snap
+++ b/__tests__/__snapshots__/Storyshots.test.js.snap
@@ -27479,7 +27479,7 @@ exports[`Storyshots Message list message 1`] = `
resizeMode="cover"
source={
Object {
- "uri": "https://open.rocket.chat/file-upload/2ZrxuwcGeTrsoh376/Clipboard%252520-%252520September%2525205,%2525202018%2525204:10%252520PM?rc_uid=&rc_token=",
+ "uri": "https://open.rocket.chat/dummypath?rc_uid=&rc_token=",
}
}
style={
@@ -27785,7 +27785,7 @@ exports[`Storyshots Message list message 1`] = `
resizeMode="cover"
source={
Object {
- "uri": "https://open.rocket.chat/file-upload/sxLXBzjwuqxMnebyP/Clipboard%252520-%25252029%252520de%252520Agosto%252520de%2525202018%252520%2525C3%2525A0s%25252018:10?rc_uid=&rc_token=",
+ "uri": "https://open.rocket.chat/dummypath?rc_uid=&rc_token=",
}
}
style={
@@ -29517,6 +29517,564 @@ exports[`Storyshots Message list message 1`] = `
+
+ With file
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ diego.mello
+
+
+
+ 10:00 AM
+
+
+
+
+
+
+
+ File.pdf
+
+
+
+
+
+
+ This is a description
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ File.pdf
+
+
+
+
+
+
+ This is a description
+
+
+
+
+
+
+
+
+
+
0 && styles.marginTop,
- {
- backgroundColor: themes[theme].chatComponentBackground,
- borderColor: themes[theme].borderColor
- }
- ]}
- background={Touchable.Ripple(themes[theme].bannerBackground)}
- >
-
-
-
-
-
-
+ <>
+ 0 && styles.marginTop,
+ attachment.description && styles.marginBottom,
+ {
+ backgroundColor: themes[theme].chatComponentBackground,
+ borderColor: themes[theme].borderColor
+ }
+ ]}
+ background={Touchable.Ripple(themes[theme].bannerBackground)}
+ >
+
+
+
+
+
+
+
+ >
);
}, (prevProps, nextProps) => isEqual(prevProps.attachment, nextProps.attachment) && prevProps.theme === nextProps.theme);
diff --git a/storybook/stories/Message.js b/storybook/stories/Message.js
index 1da166ffb..3068302cb 100644
--- a/storybook/stories/Message.js
+++ b/storybook/stories/Message.js
@@ -346,14 +346,14 @@ export default ({ theme }) => {
attachments={[{
title: 'This is a title',
description: 'This is a description',
- image_url: '/file-upload/2ZrxuwcGeTrsoh376/Clipboard%20-%20September%205,%202018%204:10%20PM'
+ image_url: '/dummypath'
}]}
/>
@@ -362,13 +362,13 @@ export default ({ theme }) => {
attachments={[{
title: 'This is a title',
description: 'This is a description :nyan_rocket:',
- video_url: '/file-upload/cqnKqb6kdajky5Rxj/WhatsApp%20Video%202018-08-22%20at%2019.09.55.mp4'
+ video_url: '/dummypath'
}]}
/>
@@ -377,7 +377,7 @@ export default ({ theme }) => {
attachments={[{
title: 'This is a title',
description: 'This is a description :nyan_rocket:',
- audio_url: '/file-upload/c4wcNhrbXJLBvAJtN/1535569819516.aac'
+ audio_url: '/dummypath'
}]}
/>
@@ -385,21 +385,36 @@ export default ({ theme }) => {
attachments={[{
title: 'This is a title',
description: 'This is a description',
- audio_url: '/file-upload/c4wcNhrbXJLBvAJtN/1535569819516.aac'
+ audio_url: '/dummypath'
}]}
isHeader={false}
/>
+
+
+
+