Skip to content

Commit 302c630

Browse files
committed
Invoke onShowMoreRooms to allow parents to kick their scrollbars..
1 parent 0ee1892 commit 302c630

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎src/components/structures/RoomSubList.js‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ var RoomSubList = React.createClass({
7272
collapsed: React.PropTypes.bool.isRequired,
7373
onHeaderClick: React.PropTypes.func,
7474
alwaysShowHeader: React.PropTypes.bool,
75-
incomingCall: React.PropTypes.object
75+
incomingCall: React.PropTypes.object,
76+
onShowMoreRooms: React.PropTypes.func
7677
},
7778

7879
getInitialState: function() {
@@ -85,7 +86,8 @@ var RoomSubList = React.createClass({
8586

8687
getDefaultProps: function() {
8788
return {
88-
onHeaderClick: function() {} // NOP
89+
onHeaderClick: function() {}, // NOP
90+
onShowMoreRooms: function() {} // NOP
8991
};
9092
},
9193

@@ -294,9 +296,7 @@ var RoomSubList = React.createClass({
294296
this.setState({
295297
truncateAt: -1
296298
});
297-
// kick gemini in the balls to get it to wake up
298-
// XXX: uuuuuuugh.
299-
this.props.list.forceUpdate();
299+
this.props.onShowMoreRooms();
300300
},
301301

302302
render: function() {

0 commit comments

Comments
 (0)