You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-19 20:23:18 +03:00
make sure scrollpanel is mounted before checking scroll
have seen errors in this direction, so hope this will fix it, as this is invoked from any EventTile's onHeightChanged callback, which is often called after some async operation (by when the timeline can be unmounted already). doesn't hurt in any case.
This commit is contained in:
@ -214,6 +214,9 @@ module.exports = React.createClass({
|
||||
// after an update to the contents of the panel, check that the scroll is
|
||||
// where it ought to be, and set off pagination requests if necessary.
|
||||
checkScroll: function() {
|
||||
if (this.unmounted) {
|
||||
return;
|
||||
}
|
||||
this._restoreSavedScrollState();
|
||||
this.checkFillState();
|
||||
},
|
||||
|
Reference in New Issue
Block a user