Clear emoji suggestion list if there no matches (#4290)

Этот коммит содержится в:
Joram Wilander
2016-10-21 11:52:09 -04:00
коммит произвёл Corey Hulen
родитель 234958e007
Коммит 254cefee1a

Просмотреть файл

@@ -90,8 +90,8 @@ export default class EmoticonProvider {
const terms = matched.map((emoticon) => ':' + emoticon.name + ':');
SuggestionStore.clearSuggestions(suggestionId);
if (terms.length > 0) {
SuggestionStore.clearSuggestions(suggestionId);
SuggestionStore.addSuggestions(suggestionId, terms, matched, EmoticonSuggestion, text);
hasSuggestions = true;