Merge pull request #246 from matrix-org/rav/read_marker_off_by_one

Fix off-by-one error in read-marker advancing
This commit is contained in:
Richard van der Hoff 2016-03-23 10:23:19 +00:00
commit cf17258a6c

View file

@ -392,7 +392,7 @@ var TimelinePanel = React.createClass({
// now think about advancing it
var myUserId = MatrixClientPeg.get().credentials.userId;
for (; i < events.length; i++) {
for (i++; i < events.length; i++) {
var ev = events[i];
if (!ev.sender || ev.sender.userId != myUserId) {
break;