Move ghost-read-marker logic to MessagePanel

This commit is contained in:
Richard van der Hoff 2016-02-15 09:50:12 +00:00
parent 63511d4e71
commit db09d3d9e4
2 changed files with 39 additions and 15 deletions

View file

@ -82,7 +82,6 @@ module.exports = React.createClass({
timelineLoading: true, // track whether our room timeline is loading
canBackPaginate: true,
readMarkerEventId: this._getCurrentReadReceipt(),
readMarkerGhostEventId: null,
};
},
@ -200,7 +199,6 @@ module.exports = React.createClass({
this.setState({
readMarkerEventId: newReadMarker,
readMarkerGhostEventId: oldReadMarker,
});
},
@ -441,7 +439,6 @@ module.exports = React.createClass({
events={ this.state.events }
highlightedEventId={ this.props.highlightedEventId }
readMarkerEventId={ this.state.readMarkerEventId }
readMarkerGhostEventId={ this.state.readMarkerGhostEventId }
suppressFirstDateSeparator={ this.state.canBackPaginate }
ourUserId={ MatrixClientPeg.get().credentials.userId }
stickyBottom={ stickyBottom }