diff --git a/src/components/views/rooms/RoomList.js b/src/components/views/rooms/RoomList.js index 1e18e79c07..54c3b30b32 100644 --- a/src/components/views/rooms/RoomList.js +++ b/src/components/views/rooms/RoomList.js @@ -325,6 +325,12 @@ module.exports = React.createClass({ }); }, + onShowMoreRooms: function() { + // kick gemini in the balls to get it to wake up + // XXX: uuuuuuugh. + this.refs.gemscroll.forceUpdate(); + }, + render: function() { var expandButton = this.props.collapsed ? > : @@ -334,7 +340,7 @@ module.exports = React.createClass({ var self = this; return ( - +
{ expandButton } @@ -344,7 +350,8 @@ module.exports = React.createClass({ order="recent" selectedRoom={ self.props.selectedRoom } incomingCall={ self.state.incomingCall } - collapsed={ self.props.collapsed } /> + collapsed={ self.props.collapsed } + onShowMoreRooms={ this.onShowMoreRooms } /> + collapsed={ self.props.collapsed } + onShowMoreRooms={ this.onShowMoreRooms } /> + collapsed={ self.props.collapsed } + onShowMoreRooms={ this.onShowMoreRooms } /> { Object.keys(self.state.lists).map(function(tagName) { if (!tagName.match(/^(m\.(favourite|lowpriority)|im\.vector\.fake\.(invite|recent|archived))$/)) { @@ -376,7 +385,8 @@ module.exports = React.createClass({ order="manual" selectedRoom={ self.props.selectedRoom } incomingCall={ self.state.incomingCall } - collapsed={ self.props.collapsed } /> + collapsed={ self.props.collapsed } + onShowMoreRooms={ this.onShowMoreRooms } /> } }) } @@ -389,7 +399,8 @@ module.exports = React.createClass({ order="recent" selectedRoom={ self.props.selectedRoom } incomingCall={ self.state.incomingCall } - collapsed={ self.props.collapsed } /> + collapsed={ self.props.collapsed } + onShowMoreRooms={ this.onShowMoreRooms } /> + incomingCall={ self.state.incomingCall } + onShowMoreRooms={ this.onShowMoreRooms } />
);