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:
commit
cf17258a6c
1 changed files with 1 additions and 1 deletions
|
@ -392,7 +392,7 @@ var TimelinePanel = React.createClass({
|
||||||
|
|
||||||
// now think about advancing it
|
// now think about advancing it
|
||||||
var myUserId = MatrixClientPeg.get().credentials.userId;
|
var myUserId = MatrixClientPeg.get().credentials.userId;
|
||||||
for (; i < events.length; i++) {
|
for (i++; i < events.length; i++) {
|
||||||
var ev = events[i];
|
var ev = events[i];
|
||||||
if (!ev.sender || ev.sender.userId != myUserId) {
|
if (!ev.sender || ev.sender.userId != myUserId) {
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue