diff options
author | Joram Wilander <jwawilander@gmail.com> | 2016-10-20 11:32:20 -0400 |
---|---|---|
committer | enahum <nahumhbl@gmail.com> | 2016-10-20 12:32:20 -0300 |
commit | 4aa96c76b4662d6d7f9a28af0b719404c31bbb45 (patch) | |
tree | bc8f8ccc2ba7674e7377c9fe963386d0ca9b94df /webapp/components/suggestion/search_channel_provider.jsx | |
parent | 4688d4981a2b9f190b94c0932e8c12e15fd98ebe (diff) | |
download | chat-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.jsx | 1 |
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); } |