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
Richard van der Hoff 2016-03-31 00:51:23 +01:00
parent dc5c0928b2
commit 631183da29
1 changed files with 1 additions and 0 deletions

View File

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