You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-30 02:21:17 +03:00
Add read-up-to green* line
* not actually green without CSS in vector-web
This commit is contained in:
@ -650,6 +650,7 @@ module.exports = React.createClass({
|
|||||||
|
|
||||||
|
|
||||||
var prevEvent = null; // the last event we showed
|
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);
|
var startIdx = Math.max(0, this.state.room.timeline.length - this.state.messageCap);
|
||||||
for (var i = startIdx; i < this.state.room.timeline.length; i++) {
|
for (var i = startIdx; i < this.state.room.timeline.length; i++) {
|
||||||
var mxEv = this.state.room.timeline[i];
|
var mxEv = this.state.room.timeline[i];
|
||||||
@ -700,6 +701,10 @@ module.exports = React.createClass({
|
|||||||
</li>
|
</li>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if (eventId == readReceiptEventId) {
|
||||||
|
ret.push(<hr className="mx_RoomView_myReadMarker" />);
|
||||||
|
}
|
||||||
|
|
||||||
prevEvent = mxEv;
|
prevEvent = mxEv;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user