diff --git a/src/components/views/messages/MImageBody.js b/src/components/views/messages/MImageBody.js index 63fd119335..08969114f9 100644 --- a/src/components/views/messages/MImageBody.js +++ b/src/components/views/messages/MImageBody.js @@ -32,6 +32,9 @@ module.exports = React.createClass({ propTypes: { /* the MatrixEvent to show */ mxEvent: React.PropTypes.object.isRequired, + + /* called when the image has loaded */ + onWidgetLoad: React.PropTypes.func.isRequired, }, getInitialState: function() { @@ -123,6 +126,7 @@ module.exports = React.createClass({ decryptedUrl: contentUrl, decryptedThumbnailUrl: thumbnailUrl, }); + this.props.onWidgetLoad(); }); }).catch((err) => { console.warn("Unable to decrypt attachment: ", err); @@ -186,11 +190,12 @@ module.exports = React.createClass({
- {content.body} + {content.body}
);