mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 11:47:23 +03:00
Fixed historical scetion not scrolling up when clicked if not hidden and stuck
This commit is contained in:
parent
769e7d3b2e
commit
8061a2f279
1 changed files with 5 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue