Clear mention autocomplete if there is no regex match (#5085)

Этот коммит содержится в:
Joram Wilander
2017-01-16 18:33:42 -05:00
коммит произвёл Corey Hulen
родитель 4386432834
Коммит 846880e814

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

@@ -6,6 +6,7 @@ import Provider from './provider.jsx';
import ChannelStore from 'stores/channel_store.jsx';
import UserStore from 'stores/user_store.jsx';
import SuggestionStore from 'stores/suggestion_store.jsx';
import {autocompleteUsersInChannel} from 'actions/user_actions.jsx';
@@ -161,6 +162,8 @@ export default class AtMentionProvider extends Provider {
});
}
);
} else {
SuggestionStore.clearSuggestions(suggestionId);
}
}
}