Oops, missed some asyncs

pull/21833/head
David Baker 2019-01-09 19:36:34 +00:00
parent f269b5fbbc
commit b9719abbc2
1 changed files with 3 additions and 3 deletions

View File

@ -1322,7 +1322,7 @@ export default class MessageComposerInput extends React.Component {
return true; return true;
}; };
onTab = async(e) => { onTab = async (e) => {
this.setState({ this.setState({
someCompletions: null, someCompletions: null,
}); });
@ -1344,7 +1344,7 @@ export default class MessageComposerInput extends React.Component {
up ? this.autocomplete.onUpArrow() : this.autocomplete.onDownArrow(); up ? this.autocomplete.onUpArrow() : this.autocomplete.onDownArrow();
}; };
onEscape = async(e) => { onEscape = async (e) => {
e.preventDefault(); e.preventDefault();
if (this.autocomplete) { if (this.autocomplete) {
this.autocomplete.onEscape(e); this.autocomplete.onEscape(e);
@ -1363,7 +1363,7 @@ export default class MessageComposerInput extends React.Component {
/* If passed null, restores the original editor content from state.originalEditorState. /* If passed null, restores the original editor content from state.originalEditorState.
* If passed a non-null displayedCompletion, modifies state.originalEditorState to compute new state.editorState. * If passed a non-null displayedCompletion, modifies state.originalEditorState to compute new state.editorState.
*/ */
setDisplayedCompletion = async(displayedCompletion: ?Completion): boolean => { setDisplayedCompletion = async (displayedCompletion: ?Completion): boolean => {
const activeEditorState = this.state.originalEditorState || this.state.editorState; const activeEditorState = this.state.originalEditorState || this.state.editorState;
if (displayedCompletion == null) { if (displayedCompletion == null) {