You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-10 09:22:25 +03:00
Fixed historical scetion not scrolling up when clicked if not hidden and stuck
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user