From c4fd04efb642b42b5829e25b4fc5d8b389fff8de Mon Sep 17 00:00:00 2001
From: Harrison Healey <harrisonmhealey@gmail.com>
Date: Tue, 4 Apr 2017 00:22:09 -0400
Subject: Fixed channel autocomplete flickering (#5961)

---
 webapp/components/suggestion/emoticon_provider.jsx | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

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

diff --git a/webapp/components/suggestion/emoticon_provider.jsx b/webapp/components/suggestion/emoticon_provider.jsx
index 6a4332e2f..6cead0abb 100644
--- a/webapp/components/suggestion/emoticon_provider.jsx
+++ b/webapp/components/suggestion/emoticon_provider.jsx
@@ -55,7 +55,7 @@ export default class EmoticonProvider {
 
             if (partialName.length < MIN_EMOTICON_LENGTH) {
                 SuggestionStore.clearSuggestions(suggestionId);
-                return;
+                return false;
             }
 
             const matched = [];
@@ -117,6 +117,10 @@ export default class EmoticonProvider {
         if (hasSuggestions) {
             // force the selection to be cleared since the order of elements may have changed
             SuggestionStore.clearSelection(suggestionId);
+
+            return true;
         }
+
+        return false;
     }
 }
-- 
cgit v1.2.3-1-g7c22

