mirror of
https://github.com/element-hq/element-web
synced 2024-11-24 02:05:45 +03:00
remove leftover code
This commit is contained in:
parent
85efb71a23
commit
29f96e659a
1 changed files with 1 additions and 8 deletions
|
@ -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
|
||||
partCreator.setAutoCompleteCreator(autoCompleteCreator(
|
||||
() => this._autocompleteRef,
|
||||
query => {
|
||||
return new Promise(resolve => this.setState({query}, resolve));
|
||||
// if setState
|
||||
// if (this.state.query === query) {
|
||||
// return Promise.resolve();
|
||||
// } else {
|
||||
// }
|
||||
},
|
||||
query => new Promise(resolve => this.setState({query}, resolve)),
|
||||
));
|
||||
this.historyManager = new HistoryManager(partCreator);
|
||||
// initial render of model
|
||||
|
|
Loading…
Reference in a new issue