diff --git a/src/components/views/elements/ImageView.js b/src/components/views/elements/ImageView.js index 2025cec2..741524be 100644 --- a/src/components/views/elements/ImageView.js +++ b/src/components/views/elements/ImageView.js @@ -105,6 +105,11 @@ module.exports = React.createClass({ res = ", " + style.width + "x" + style.height + "px"; } + var size; + if (this.props.mxEvent.getContent().info && this.props.mxEvent.getContent().info.size) { + size = filesize(this.props.mxEvent.getContent().info.size); + } + return (
@@ -124,7 +129,7 @@ module.exports = React.createClass({
Download this file
- ({ filesize(this.props.mxEvent.getContent().info.size) }{ res }) + { size } { res }