diff options
author | Joram Wilander <jwawilander@gmail.com> | 2016-11-29 10:12:59 -0500 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2016-11-29 10:12:59 -0500 |
commit | 02d581c1599c5d50cc507bd2633f1e3c34b1cc84 (patch) | |
tree | 73437f73a8031b8c792e4b6652d1eb2428c6f2d7 /webapp/components/suggestion/switch_channel_provider.jsx | |
parent | ad52183248512b9aafa59b4429364c75e024cf6f (diff) | |
download | chat-02d581c1599c5d50cc507bd2633f1e3c34b1cc84.tar.gz chat-02d581c1599c5d50cc507bd2633f1e3c34b1cc84.tar.bz2 chat-02d581c1599c5d50cc507bd2633f1e3c34b1cc84.zip |
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
Diffstat (limited to 'webapp/components/suggestion/switch_channel_provider.jsx')
-rw-r--r-- | webapp/components/suggestion/switch_channel_provider.jsx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/webapp/components/suggestion/switch_channel_provider.jsx b/webapp/components/suggestion/switch_channel_provider.jsx index 8178722ef..534a7e30f 100644 --- a/webapp/components/suggestion/switch_channel_provider.jsx +++ b/webapp/components/suggestion/switch_channel_provider.jsx @@ -6,7 +6,7 @@ import Suggestion from './suggestion.jsx'; import ChannelStore from 'stores/channel_store.jsx'; import UserStore from 'stores/user_store.jsx'; -import {autocompleteUsersInTeam} from 'actions/user_actions.jsx'; +import {autocompleteUsers} from 'actions/user_actions.jsx'; import AppDispatcher from 'dispatcher/app_dispatcher.jsx'; import {Constants, ActionTypes} from 'utils/constants.jsx'; @@ -64,10 +64,9 @@ export default class SwitchChannelProvider { const channels = []; function autocomplete() { - autocompleteUsersInTeam( + autocompleteUsers( channelPrefix, - (data) => { - const users = data.in_team; + (users) => { const currentId = UserStore.getCurrentId(); for (const id of Object.keys(allChannels)) { |