Merge pull request #253 from matrix-org/rav/fix_jump_to_read_marker

Don't reload the DOM if we can jump straight to the RM
pull/21833/head
Richard van der Hoff 2016-03-31 00:59:23 +01:00
commit ec8fecb953
1 changed files with 1 additions and 0 deletions

View File

@ -444,6 +444,7 @@ var TimelinePanel = React.createClass({
// the relevant event. // the relevant event.
this.refs.messagePanel.scrollToEvent(this.state.readMarkerEventId, this.refs.messagePanel.scrollToEvent(this.state.readMarkerEventId,
0, 1/3); 0, 1/3);
return;
} }
// Looks like we haven't loaded the event corresponding to the read-marker. // Looks like we haven't loaded the event corresponding to the read-marker.