summaryrefslogtreecommitdiffstats
path: root/webapp/components/suggestion/channel_mention_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/channel_mention_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/channel_mention_provider.jsx')
-rw-r--r--webapp/components/suggestion/channel_mention_provider.jsx1
1 files changed, 1 insertions, 0 deletions
diff --git a/webapp/components/suggestion/channel_mention_provider.jsx b/webapp/components/suggestion/channel_mention_provider.jsx
index 17dbb6e48..0058bcc73 100644
--- a/webapp/components/suggestion/channel_mention_provider.jsx
+++ b/webapp/components/suggestion/channel_mention_provider.jsx
@@ -124,6 +124,7 @@ export default class ChannelMentionProvider {
const mentions = wrapped.map((item) => '!' + item.channel.name);
+ SuggestionStore.clearSuggestions(suggestionId);
SuggestionStore.addSuggestions(suggestionId, mentions, wrapped, ChannelMentionSuggestion, captured[2]);
}
}