Remove redundant setting of readMarkerEventId

pull/21833/head
Luke Barnard 2017-04-12 15:12:37 +01:00
parent 249e42747b
commit 9c9dc84f45
1 changed files with 2 additions and 1 deletions

View File

@ -417,9 +417,10 @@ var TimelinePanel = React.createClass({
} else if(lastEv && this.getReadMarkerPosition() === 0) {
// we know we're stuckAtBottom, so we can advance the RM
// immediately, to save a later render cycle
// This call will setState with readMarkerEventId = lastEv.getId()
this._setReadMarker(lastEv.getId(), lastEv.getTs(), true);
updatedState.readMarkerVisible = false;
updatedState.readMarkerEventId = lastEv.getId();
callback = this.props.onReadMarkerUpdated;
}
}