summaryrefslogtreecommitdiffstats
path: root/web/react/components/suggestion
diff options
context:
space:
mode:
authorCorey Hulen <corey@hulen.com>2016-02-05 07:42:42 -0800
committerCorey Hulen <corey@hulen.com>2016-02-05 07:42:42 -0800
commit9b8761df8de0b7b4dcda55ecce7750dc385e38c8 (patch)
tree9019751c4a75896727b6bef62d8cfec566a7ed27 /web/react/components/suggestion
parent5f1257bb89b148304c32dd191b3738cf0d629bfd (diff)
parente6a7594d70dfde30e3dbb36d45e5d1458883553f (diff)
downloadchat-9b8761df8de0b7b4dcda55ecce7750dc385e38c8.tar.gz
chat-9b8761df8de0b7b4dcda55ecce7750dc385e38c8.tar.bz2
chat-9b8761df8de0b7b4dcda55ecce7750dc385e38c8.zip
Merge pull request #2087 from hmhealey/plt1758
PLT-1758 Changed CommandProvider to only set the matched pretext if it actuall…
Diffstat (limited to 'web/react/components/suggestion')
-rw-r--r--web/react/components/suggestion/command_provider.jsx3
1 files changed, 0 insertions, 3 deletions
diff --git a/web/react/components/suggestion/command_provider.jsx b/web/react/components/suggestion/command_provider.jsx
index 91d556bb9..09c9b9982 100644
--- a/web/react/components/suggestion/command_provider.jsx
+++ b/web/react/components/suggestion/command_provider.jsx
@@ -2,7 +2,6 @@
// See License.txt for license information.
import * as AsyncClient from '../../utils/async_client.jsx';
-import SuggestionStore from '../../stores/suggestion_store.jsx';
class CommandSuggestion extends React.Component {
render() {
@@ -38,8 +37,6 @@ CommandSuggestion.propTypes = {
export default class CommandProvider {
handlePretextChanged(suggestionId, pretext) {
if (pretext.startsWith('/')) {
- SuggestionStore.setMatchedPretext(suggestionId, pretext);
-
AsyncClient.getSuggestedCommands(pretext, suggestionId, CommandSuggestion);
}
}