From 4aa96c76b4662d6d7f9a28af0b719404c31bbb45 Mon Sep 17 00:00:00 2001
From: Joram Wilander <jwawilander@gmail.com>
Date: Thu, 20 Oct 2016 11:32:20 -0400
Subject: Fix autocomplete for old mechanisms and add partial fix for channel
 switcher (#4279)

---
 webapp/components/suggestion/channel_mention_provider.jsx | 1 +
 1 file changed, 1 insertion(+)

(limited to 'webapp/components/suggestion/channel_mention_provider.jsx')

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]);
         }
     }
-- 
cgit v1.2.3-1-g7c22

