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; }