From ef473dec729165f7f6fa060523e2d419e04572b0 Mon Sep 17 00:00:00 2001 From: David Baker Date: Thu, 7 Jan 2016 11:18:41 +0000 Subject: [PATCH] Add read-up-to green* line * not actually green without CSS in vector-web --- src/components/structures/RoomView.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/components/structures/RoomView.js b/src/components/structures/RoomView.js index 177b4ab1cc..d32b11abfd 100644 --- a/src/components/structures/RoomView.js +++ b/src/components/structures/RoomView.js @@ -650,6 +650,7 @@ module.exports = React.createClass({ var prevEvent = null; // the last event we showed + var readReceiptEventId = this.state.room.getEventReadUpTo(MatrixClientPeg.get().credentials.userId); var startIdx = Math.max(0, this.state.room.timeline.length - this.state.messageCap); for (var i = startIdx; i < this.state.room.timeline.length; i++) { var mxEv = this.state.room.timeline[i]; @@ -700,6 +701,10 @@ module.exports = React.createClass({ ); + if (eventId == readReceiptEventId) { + ret.push(
); + } + prevEvent = mxEv; }