diff --git a/__tests__/__snapshots__/Storyshots.test.js.snap b/__tests__/__snapshots__/Storyshots.test.js.snap index b9950e32..4338ff0f 100644 --- a/__tests__/__snapshots__/Storyshots.test.js.snap +++ b/__tests__/__snapshots__/Storyshots.test.js.snap @@ -3666,7 +3666,7 @@ exports[`Storyshots Message list message 1`] = ` - - - diego.mello - - + diego.mello + - - - diego.mello - - + diego.mello + - - - diego.mello - - + diego.mello + - - - Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. - - + Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. + - - - diego.mello - - + diego.mello + - + Diego Mello - Diego Mello - - @ - diego.mello - + @ + diego.mello - + - + Diego Mello - Diego Mello - - @ - Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. - + @ + Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. - + - - - diego.mello - - + diego.mello + - - - diego.mello - - + diego.mello + - - - diego.mello - - + diego.mello + - - - diego.mello - - + diego.mello + - - - diego.mello - - + diego.mello + - - - diego.mello - - + diego.mello + - - - diego.mello - - + diego.mello + - - - Diego Mello - - + Diego Mello + - - - diego.mello - - + diego.mello + - - - diego.mello - - + diego.mello + - - - diego.mello - - + diego.mello + - - - diego.mello - - + diego.mello + - - - diego.mello - - + diego.mello + - - - diego.mello - - + diego.mello + - - - diego.mello - - + diego.mello + - - - diego.mello - - + diego.mello + - - - diego.mello - - + diego.mello + - - - diego.mello - - + diego.mello + - - - rocket.cat - - + rocket.cat + - - - diego.mello - - + diego.mello + - - - rocket.cat - - + rocket.cat + - - - diego.mello - - + diego.mello + - - - rocket.cat - - + rocket.cat + - - - diego.mello - - + diego.mello + - - - rocket.cat - - + rocket.cat + - - - diego.mello - - + diego.mello + - - - diego.mello - - + diego.mello + - - - diego.mello - - + diego.mello + - - - diego.mello - - + diego.mello + - - - diego.mello - - + diego.mello + - - - diego.mello - - + diego.mello + - - - diego.mello - - + diego.mello + - - - diego.mello - - + diego.mello + - - - diego.mello - - + diego.mello + - - - diego.mello - - + diego.mello + - - - diego.mello - - + diego.mello + - - - diego.mello - - + diego.mello + - - - diego.mello - - + diego.mello + - - - diego.mello - - + diego.mello + - - - diego.mello - - + diego.mello + - - - diego.mello - - + diego.mello + - - - diego.mello - - + diego.mello + - - - diego.mello - - + diego.mello + - - - diego.mello - - + diego.mello + - - - diego.mello - - + diego.mello + - - - diego.mello - - + diego.mello + - - - diego.mello - - + diego.mello + - - - diego.mello - - + diego.mello + - - - diego.mello - - + diego.mello + - - - diego.mello - - + diego.mello + - - - diego.mello - - + diego.mello + - - - diego.mello - - + diego.mello + - - - diego.mello - - + diego.mello + - - - diego.mello - - + diego.mello + - - - diego.mello - - + diego.mello + - - - diego.mello - - + diego.mello + - - - diego.mello - - + diego.mello + - - - diego.mello - - + diego.mello + - - - diego.mello - - + diego.mello + - - - diego.mello - - + diego.mello + { const avatarStyle = { width: size, @@ -36,9 +37,9 @@ const Avatar = React.memo(({ if (onPress) { image = ( - + {image} - + ); } @@ -61,7 +62,6 @@ Avatar.propTypes = { children: PropTypes.object, userId: PropTypes.string, token: PropTypes.string, - theme: PropTypes.string, onPress: PropTypes.func }; diff --git a/app/containers/message/Attachments.js b/app/containers/message/Attachments.js index cf3f6106..3d4ff48b 100644 --- a/app/containers/message/Attachments.js +++ b/app/containers/message/Attachments.js @@ -8,7 +8,7 @@ import Video from './Video'; import Reply from './Reply'; const Attachments = React.memo(({ - attachments, timeFormat, user, baseUrl, showAttachment, getCustomEmoji, theme + attachments, timeFormat, showAttachment, getCustomEmoji, theme }) => { if (!attachments || attachments.length === 0) { return null; @@ -16,25 +16,23 @@ const Attachments = React.memo(({ return attachments.map((file, index) => { if (file.image_url) { - return ; + return ; } if (file.audio_url) { - return