You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-12 12:41:46 +03:00
Kill another scrollToToken
Missed a place where we were scrolling the messagepanel manually
This commit is contained in:
@ -1141,19 +1141,6 @@ module.exports = React.createClass({
|
|||||||
// it failed, so allow retries next time the user is active
|
// it failed, so allow retries next time the user is active
|
||||||
this.last_rr_sent_event_id = undefined;
|
this.last_rr_sent_event_id = undefined;
|
||||||
});
|
});
|
||||||
|
|
||||||
// if the scrollpanel is following the timeline, attempt to scroll
|
|
||||||
// it to bring the read message up to the middle of the panel. This
|
|
||||||
// will have no immediate effect (since we are already at the
|
|
||||||
// bottom), but will ensure that if there is no further user
|
|
||||||
// activity, but room activity continues, the read message will
|
|
||||||
// scroll up to the middle of the window, but no further.
|
|
||||||
//
|
|
||||||
// we do this here as well as in onRoomReceipt to cater for guest users
|
|
||||||
// (which do not send out read receipts).
|
|
||||||
if (this.state.atEndOfLiveTimeline) {
|
|
||||||
this.refs.messagePanel.scrollToToken(lastReadEvent.getId());
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user