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

Fix off-by-one error in read-marker advancing
pull/21833/head
Richard van der Hoff 2016-03-23 10:23:19 +00:00
commit cf17258a6c
1 changed files with 1 additions and 1 deletions

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;