mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 03:36:07 +03:00
don't bind
This commit is contained in:
parent
fa0319f14b
commit
f4b86ca265
1 changed files with 1 additions and 2 deletions
|
@ -28,7 +28,6 @@ export default class MessageEditHistoryDialog extends React.Component {
|
|||
};
|
||||
|
||||
componentWillMount() {
|
||||
this.loadMoreEdits = this.loadMoreEdits.bind(this);
|
||||
this.setState({
|
||||
events: [],
|
||||
nextBatch: null,
|
||||
|
@ -37,7 +36,7 @@ export default class MessageEditHistoryDialog extends React.Component {
|
|||
});
|
||||
}
|
||||
|
||||
async loadMoreEdits(backwards) {
|
||||
loadMoreEdits = async (backwards) => {
|
||||
if (backwards || (!this.state.nextBatch && !this.state.isLoading)) {
|
||||
// bail out on backwards as we only paginate in one direction
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue