You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-20 16:22:28 +03:00
remove leftover code
This commit is contained in:
@@ -336,14 +336,7 @@ export default class BasicMessageEditor extends React.Component {
|
|||||||
// not really, but we could not serialize the parts, and just change the autoCompleter
|
// not really, but we could not serialize the parts, and just change the autoCompleter
|
||||||
partCreator.setAutoCompleteCreator(autoCompleteCreator(
|
partCreator.setAutoCompleteCreator(autoCompleteCreator(
|
||||||
() => this._autocompleteRef,
|
() => this._autocompleteRef,
|
||||||
query => {
|
query => new Promise(resolve => this.setState({query}, resolve)),
|
||||||
return new Promise(resolve => this.setState({query}, resolve));
|
|
||||||
// if setState
|
|
||||||
// if (this.state.query === query) {
|
|
||||||
// return Promise.resolve();
|
|
||||||
// } else {
|
|
||||||
// }
|
|
||||||
},
|
|
||||||
));
|
));
|
||||||
this.historyManager = new HistoryManager(partCreator);
|
this.historyManager = new HistoryManager(partCreator);
|
||||||
// initial render of model
|
// initial render of model
|
||||||
|
|||||||
Reference in New Issue
Block a user