You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-10 09:22:25 +03:00
don't bind
This commit is contained in:
@@ -28,7 +28,6 @@ export default class MessageEditHistoryDialog extends React.Component {
|
|||||||
};
|
};
|
||||||
|
|
||||||
componentWillMount() {
|
componentWillMount() {
|
||||||
this.loadMoreEdits = this.loadMoreEdits.bind(this);
|
|
||||||
this.setState({
|
this.setState({
|
||||||
events: [],
|
events: [],
|
||||||
nextBatch: null,
|
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)) {
|
if (backwards || (!this.state.nextBatch && !this.state.isLoading)) {
|
||||||
// bail out on backwards as we only paginate in one direction
|
// bail out on backwards as we only paginate in one direction
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user