Merge pull request #331 from aviraldg/fix-autocomplete-1

Autocomplete fixes
pull/21833/head
David Baker 2016-07-04 21:53:52 +01:00 committed by GitHub
commit 9b364c1be5
3 changed files with 3 additions and 1 deletions

View File

@ -16,7 +16,7 @@ export default class DuckDuckGoProvider extends AutocompleteProvider {
}
static getQueryUri(query: String) {
return `http://api.duckduckgo.com/?q=${encodeURIComponent(query)}`
return `https://api.duckduckgo.com/?q=${encodeURIComponent(query)}`
+ `&format=json&no_redirect=1&no_html=1&t=${encodeURIComponent(REFERRER)}`;
}

View File

@ -32,6 +32,7 @@ export default class UserProvider extends AutocompleteProvider {
title={user.displayName || user.userId}
description={user.userId} />
),
range
};
}).slice(0, 4);
}

View File

@ -207,6 +207,7 @@ export default class MessageComposer extends React.Component {
onUpArrow={this.onUpArrow}
onDownArrow={this.onDownArrow}
onTab={this.onTab}
tabComplete={this.props.tabComplete} // used for old messagecomposerinput/tabcomplete
onContentChanged={this.onInputContentChanged} />,
uploadButton,
hangupButton,