diff options
Diffstat (limited to 'webapp/components')
-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)) { |