mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-04 19:56:45 +02:00
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.
This commit is contained in:
parent
dc5c0928b2
commit
631183da29
@ -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.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user