diff --git a/README.md b/README.md index 14ef7c29cd..84317bc3cb 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ To work on the CSS and Javascript and have the bundle files update as you change the source files, you'll need to do two extra things: 1. Link the react sdk package into the example: - `cd matrix-react-sdk/example; npm link ..` + `cd matrix-react-sdk/examples/trivial; npm link ../../` 2. Start a watcher for the CSS files: `cd matrix-react-sdk; npm run start:css` diff --git a/src/controllers/organisms/RoomView.js b/src/controllers/organisms/RoomView.js index 692e31023e..a92ee2c672 100644 --- a/src/controllers/organisms/RoomView.js +++ b/src/controllers/organisms/RoomView.js @@ -98,6 +98,9 @@ module.exports = { componentDidMount: function() { if (this.refs.messageList) { var messageUl = this.refs.messageList.getDOMNode(); + + messageUl.addEventListener('drop', handleDrop); + messageUl.scrollTop = messageUl.scrollHeight; this.fillSpace();