Fix force completion and hide rooms with no alias

This commit is contained in:
Aviral Dasgupta 2016-09-13 18:02:33 +05:30
parent 9a991a4dfd
commit 79e5e6f6fe
3 changed files with 10 additions and 4 deletions

View file

@ -595,7 +595,9 @@ export default class MessageComposerInput extends React.Component {
e.preventDefault(); // we *never* want tab's default to happen, but we do want up/down sometimes
const didTab = await (e.shiftKey ? this.onUpArrow : this.onDownArrow)(e);
if (!didTab && this.autocomplete) {
this.autocomplete.forceComplete();
this.autocomplete.forceComplete().then(() => {
this.onDownArrow(e);
});
}
}