You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-28 15:22:05 +03: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:
@ -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