diff options
Diffstat (limited to 'webapp/components/suggestion/provider.jsx')
-rw-r--r-- | webapp/components/suggestion/provider.jsx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/webapp/components/suggestion/provider.jsx b/webapp/components/suggestion/provider.jsx index b65068d47..39bb135a8 100644 --- a/webapp/components/suggestion/provider.jsx +++ b/webapp/components/suggestion/provider.jsx @@ -1,6 +1,8 @@ // Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved. // See License.txt for license information. +import SuggestionStore from 'stores/suggestion_store.jsx'; + export default class Provider { constructor() { this.latestPrefix = ''; @@ -11,9 +13,12 @@ export default class Provider { // NO-OP for inherited classes to override } - startNewRequest(prefix) { + startNewRequest(suggestionId, prefix) { this.latestPrefix = prefix; this.latestComplete = false; + + // Don't use the dispatcher here since this is only called while handling an event + SuggestionStore.setSuggestionsPending(suggestionId, true); } shouldCancelDispatch(prefix) { |