diff --git a/src/components/structures/RoomView.js b/src/components/structures/RoomView.js index 27cc6ab249..934d22b039 100644 --- a/src/components/structures/RoomView.js +++ b/src/components/structures/RoomView.js @@ -1282,13 +1282,6 @@ module.exports = React.createClass({ var statusBar; - // for testing UI... - // this.state.upload = { - // uploadedBytes: 123493, - // totalBytes: 347534, - // fileName: "testing_fooble.jpg", - // } - if (ContentMessages.getCurrentUploads().length > 0) { var UploadBar = sdk.getComponent('structures.UploadBar'); statusBar = diff --git a/src/components/structures/UploadBar.js b/src/components/structures/UploadBar.js index 5463bc7161..794fcffec7 100644 --- a/src/components/structures/UploadBar.js +++ b/src/components/structures/UploadBar.js @@ -45,6 +45,17 @@ module.exports = React.createClass({displayName: 'UploadBar', render: function() { var uploads = ContentMessages.getCurrentUploads(); + + // for testing UI... - also fix up the ContentMessages.getCurrentUploads().length + // check in RoomView + // + // uploads = [{ + // roomId: this.props.room.roomId, + // loaded: 123493, + // total: 347534, + // fileName: "testing_fooble.jpg", + // }]; + if (uploads.length == 0) { return
}