PLT-4697 Update channel switcher to autocomplete all users on the system (#4624)

* Add autocomplete API for system-wide users

* Update channel switcher to autocomplete all users on the system
Этот коммит содержится в:
Joram Wilander
2016-11-29 10:12:59 -05:00
коммит произвёл Christopher Speller
родитель ad52183248
Коммит 02d581c159
7 изменённых файлов: 119 добавлений и 5 удалений

Просмотреть файл

@@ -318,6 +318,24 @@ export function autocompleteUsersInTeam(username, success, error) {
);
}
export function autocompleteUsers(username, success, error) {
Client.autocompleteUsers(
username,
(data) => {
if (success) {
success(data);
}
},
(err) => {
AsyncClient.dispatchError(err, 'autocompleteUsers');
if (error) {
error(err);
}
}
);
}
export function updateUser(username, success, error) {
Client.updateUser(
username,