diff --git a/src/components/views/messages/MAudioBody.js b/src/components/views/messages/MAudioBody.js
index d20c594f6f..34dcb9ba7a 100644
--- a/src/components/views/messages/MAudioBody.js
+++ b/src/components/views/messages/MAudioBody.js
@@ -81,7 +81,7 @@ export default class MAudioBody extends React.Component {
return (
-
+
);
}
diff --git a/src/components/views/messages/MFileBody.js b/src/components/views/messages/MFileBody.js
index 313577054a..1dd3414917 100644
--- a/src/components/views/messages/MFileBody.js
+++ b/src/components/views/messages/MFileBody.js
@@ -28,7 +28,7 @@ module.exports = React.createClass({
getInitialState: function() {
return {
- decryptedUrl: null,
+ decryptedUrl: (this.props.decryptedUrl ? this.props.decryptedUrl : null),
};
},
diff --git a/src/components/views/messages/MImageBody.js b/src/components/views/messages/MImageBody.js
index afafbedcb9..bdb0ec6ee8 100644
--- a/src/components/views/messages/MImageBody.js
+++ b/src/components/views/messages/MImageBody.js
@@ -18,7 +18,9 @@ limitations under the License.
var React = require('react');
var filesize = require('filesize');
-var MFileBody = require('./MFileBody');
+
+import MFileBody from './MFileBody';
+
var MatrixClientPeg = require('../../../MatrixClientPeg');
var ImageUtils = require('../../../ImageUtils');
var Modal = require('../../../Modal');
@@ -182,7 +184,7 @@ module.exports = React.createClass({
onMouseEnter={this.onImageEnter}
onMouseLeave={this.onImageLeave} />
-
+
);
} else if (content.body) {
diff --git a/src/components/views/messages/MVideoBody.js b/src/components/views/messages/MVideoBody.js
index 4744a95026..d1797339a4 100644
--- a/src/components/views/messages/MVideoBody.js
+++ b/src/components/views/messages/MVideoBody.js
@@ -147,7 +147,7 @@ module.exports = React.createClass({
controls preload={preload} autoPlay={false}
height={height} width={width} poster={poster}>
-
+
);
},