From 8061a2f279fcedad7956c6d9332e64494edf28d9 Mon Sep 17 00:00:00 2001 From: wmwragg Date: Tue, 30 Aug 2016 11:55:51 +0100 Subject: [PATCH] Fixed historical scetion not scrolling up when clicked if not hidden and stuck --- src/components/views/rooms/RoomList.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/views/rooms/RoomList.js b/src/components/views/rooms/RoomList.js index abb785fcc9..09d430de5e 100644 --- a/src/components/views/rooms/RoomList.js +++ b/src/components/views/rooms/RoomList.js @@ -121,10 +121,14 @@ module.exports = React.createClass({ this._delayedRefreshRoomList(); }, - onArchivedHeaderClick: function(isHidden) { + onArchivedHeaderClick: function(isHidden, scrollToPosition) { if (!isHidden) { var self = this; 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" // events. MatrixClientPeg.get().syncLeftRooms().catch(function(err) {