Merge pull request #246 from matrix-org/rav/read_marker_off_by_one
Fix off-by-one error in read-marker advancingpull/21833/head
commit
cf17258a6c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue