Move ghost-read-marker logic to MessagePanel
This commit is contained in:
parent
63511d4e71
commit
db09d3d9e4
2 changed files with 39 additions and 15 deletions
|
@ -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 }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue