From 02d581c1599c5d50cc507bd2633f1e3c34b1cc84 Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Tue, 29 Nov 2016 10:12:59 -0500 Subject: 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 --- webapp/components/suggestion/switch_channel_provider.jsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'webapp/components/suggestion') 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)) { -- cgit v1.2.3-1-g7c22