Fixed historical scetion not scrolling up when clicked if not hidden and stuck

This commit is contained in:
wmwragg 2016-08-30 11:55:51 +01:00
parent 769e7d3b2e
commit 8061a2f279

View file

@ -121,10 +121,14 @@ module.exports = React.createClass({
this._delayedRefreshRoomList(); this._delayedRefreshRoomList();
}, },
onArchivedHeaderClick: function(isHidden) { onArchivedHeaderClick: function(isHidden, scrollToPosition) {
if (!isHidden) { if (!isHidden) {
var self = this; var self = this;
this.setState({ isLoadingLeftRooms: true }); this.setState({ isLoadingLeftRooms: true });
// Try scrolling to position
this._updateStickyHeaders(true, scrollToPosition);
// we don't care about the response since it comes down via "Room" // we don't care about the response since it comes down via "Room"
// events. // events.
MatrixClientPeg.get().syncLeftRooms().catch(function(err) { MatrixClientPeg.get().syncLeftRooms().catch(function(err) {