From 2348c243694e65e13652c90ae6e8a9c0443de65f Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Wed, 26 Jul 2017 14:33:48 +0100 Subject: [PATCH] revert the rm-always-moves-down loop as thats done Server side... --- src/components/structures/TimelinePanel.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/components/structures/TimelinePanel.js b/src/components/structures/TimelinePanel.js index 991af88424..0aee19545c 100644 --- a/src/components/structures/TimelinePanel.js +++ b/src/components/structures/TimelinePanel.js @@ -1020,14 +1020,7 @@ var TimelinePanel = React.createClass({ var boundingRect = node.getBoundingClientRect(); if ((allowPartial && boundingRect.top < wrapperRect.bottom) || (!allowPartial && boundingRect.bottom < wrapperRect.bottom)) { - let latestReadEventIndex = i; - // Place the RM at a hidden event below the latest visible event. - // to prevent RM going up the timeline between clients which do not hide the same events. - for (let j = i + 1; j < this.state.events.length; j++) { - if (messagePanel._shouldShowEvent(this.state.events[j])) break; - latestReadEventIndex = j; - } - return latestReadEventIndex; + return i; } } return null;