Kill another scrollToToken

Missed a place where we were scrolling the messagepanel manually
pull/21833/head
Richard van der Hoff 2016-02-09 15:50:09 +00:00
parent 178e99385a
commit f48f28eefe
1 changed files with 0 additions and 13 deletions

View File

@ -1141,19 +1141,6 @@ module.exports = React.createClass({
// it failed, so allow retries next time the user is active
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());
}
}
},