Don't reload the DOM if we can jump straight to the RM
Adds a missing 'return' statement which meant that, even if we already had the relevant event loaded into the DOM, we would rebuild it when the user clicked on the "(^) Unread messages" bar.pull/21833/head
parent
dc5c0928b2
commit
631183da29
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue