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
This commit is contained in:
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user