From 7913b0b465393659d487b2368e313c93e4858be1 Mon Sep 17 00:00:00 2001 From: David Baker Date: Fri, 8 Jan 2016 21:51:14 +0000 Subject: [PATCH] Length of the returned array, not the index of the timeline event. --- src/components/structures/RoomView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/structures/RoomView.js b/src/components/structures/RoomView.js index 9871c54455..375ea92686 100644 --- a/src/components/structures/RoomView.js +++ b/src/components/structures/RoomView.js @@ -741,7 +741,7 @@ module.exports = React.createClass({ // A read up to marker has died and returned as a ghost! // Lives in the dom as the ghost of the previous one while it fades away if (eventId == this.state.readMarkerGhostEventId) { - ghostIndex = i + 1; + ghostIndex = ret.length; } prevEvent = mxEv;