summaryrefslogtreecommitdiffstats
path: root/webapp/components/suggestion
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2016-11-29 10:12:59 -0500
committerChristopher Speller <crspeller@gmail.com>2016-11-29 10:12:59 -0500
commit02d581c1599c5d50cc507bd2633f1e3c34b1cc84 (patch)
tree73437f73a8031b8c792e4b6652d1eb2428c6f2d7 /webapp/components/suggestion
parentad52183248512b9aafa59b4429364c75e024cf6f (diff)
downloadchat-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')
-rw-r--r--webapp/components/suggestion/switch_channel_provider.jsx7
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)) {