From 631183da2988e6613076a45986719e8d4fc28e26 Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Thu, 31 Mar 2016 00:51:23 +0100 Subject: [PATCH] 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. --- src/components/structures/TimelinePanel.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/structures/TimelinePanel.js b/src/components/structures/TimelinePanel.js index bf8fd29b82..be2667201e 100644 --- a/src/components/structures/TimelinePanel.js +++ b/src/components/structures/TimelinePanel.js @@ -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.