diff --git a/app/views/ShareListView/index.js b/app/views/ShareListView/index.js index da4fc3b41..ab01f00f0 100644 --- a/app/views/ShareListView/index.js +++ b/app/views/ShareListView/index.js @@ -132,7 +132,6 @@ export default class ShareListView extends React.Component { description: '', size: data.size, mime: mime.lookup(data.path), - store: 'Uploads', path: isIOS ? data.path : `file://${ data.path }` }; } diff --git a/app/views/ShareView/index.js b/app/views/ShareView/index.js index 282946273..4aab9c1c9 100644 --- a/app/views/ShareView/index.js +++ b/app/views/ShareView/index.js @@ -112,7 +112,14 @@ export default class ShareView extends React.Component { const { rid, fileInfo, file } = this.state; const { baseUrl: server, user } = this.props; const { name, description } = file; - const fileMessage = { ...fileInfo, name, description }; + const fileMessage = { + name, + description, + size: fileInfo.size, + type: fileInfo.mime, + store: 'Uploads', + path: fileInfo.path + }; if (fileInfo && rid !== '') { try { await RocketChat.sendFileMessage(rid, fileMessage, undefined, server, user);