diff --git a/src/components/structures/RoomSubList.js b/src/components/structures/RoomSubList.js index f3122dec..cce68b18 100644 --- a/src/components/structures/RoomSubList.js +++ b/src/components/structures/RoomSubList.js @@ -160,9 +160,10 @@ var RoomSubList = React.createClass({ } this.props.onShowMoreRooms(); + this.props.onHeaderClick(isHidden); + } else { + this.props.onHeaderClick(isHidden, this.refs.header.dataset.originalPosition); } - ev.persist(); - this.props.onHeaderClick(ev, isHidden); }, tsOfNewestEvent: function(room) {