summaryrefslogtreecommitdiffstats
path: root/webapp/client
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/client')
-rw-r--r--webapp/client/client.jsx11
1 files changed, 10 insertions, 1 deletions
diff --git a/webapp/client/client.jsx b/webapp/client/client.jsx
index 38cc2f111..ff42fb7ac 100644
--- a/webapp/client/client.jsx
+++ b/webapp/client/client.jsx
@@ -1112,7 +1112,7 @@ export default class Client {
set(this.defaultHeaders).
type('application/json').
accept('application/json').
- end(this.handleResponse.bind(this, 'autocompleteUsers', success, error));
+ end(this.handleResponse.bind(this, 'autocompleteUsersInChannel', success, error));
}
autocompleteUsersInTeam(term, success, error) {
@@ -1121,6 +1121,15 @@ export default class Client {
set(this.defaultHeaders).
type('application/json').
accept('application/json').
+ end(this.handleResponse.bind(this, 'autocompleteUsersInTeam', success, error));
+ }
+
+ autocompleteUsers(term, success, error) {
+ request.
+ get(`${this.getUsersRoute()}/autocomplete?term=${encodeURIComponent(term)}`).
+ set(this.defaultHeaders).
+ type('application/json').
+ accept('application/json').
end(this.handleResponse.bind(this, 'autocompleteUsers', success, error));
}