summaryrefslogtreecommitdiffstats
path: root/webapp/components/suggestion/search_channel_provider.jsx
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2016-10-20 11:32:20 -0400
committerenahum <nahumhbl@gmail.com>2016-10-20 12:32:20 -0300
commit4aa96c76b4662d6d7f9a28af0b719404c31bbb45 (patch)
treebc8f8ccc2ba7674e7377c9fe963386d0ca9b94df /webapp/components/suggestion/search_channel_provider.jsx
parent4688d4981a2b9f190b94c0932e8c12e15fd98ebe (diff)
downloadchat-4aa96c76b4662d6d7f9a28af0b719404c31bbb45.tar.gz
chat-4aa96c76b4662d6d7f9a28af0b719404c31bbb45.tar.bz2
chat-4aa96c76b4662d6d7f9a28af0b719404c31bbb45.zip
Fix autocomplete for old mechanisms and add partial fix for channel switcher (#4279)
Diffstat (limited to 'webapp/components/suggestion/search_channel_provider.jsx')
-rw-r--r--webapp/components/suggestion/search_channel_provider.jsx1
1 files changed, 1 insertions, 0 deletions
diff --git a/webapp/components/suggestion/search_channel_provider.jsx b/webapp/components/suggestion/search_channel_provider.jsx
index 1bfcda77d..0f07b6e29 100644
--- a/webapp/components/suggestion/search_channel_provider.jsx
+++ b/webapp/components/suggestion/search_channel_provider.jsx
@@ -58,6 +58,7 @@ export default class SearchChannelProvider {
privateChannels.sort((a, b) => a.name.localeCompare(b.name));
const privateChannelNames = privateChannels.map((channel) => channel.name);
+ SuggestionStore.clearSuggestions(suggestionId);
SuggestionStore.addSuggestions(suggestionId, publicChannelNames, publicChannels, SearchChannelSuggestion, channelPrefix);
SuggestionStore.addSuggestions(suggestionId, privateChannelNames, privateChannels, SearchChannelSuggestion, channelPrefix);
}