summaryrefslogtreecommitdiffstats
path: root/webapp/components/suggestion/command_provider.jsx
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2016-03-17 11:45:42 -0400
committerChristopher Speller <crspeller@gmail.com>2016-03-17 11:45:42 -0400
commit6b9d89522475c84e7833d17179b3af65b92240d6 (patch)
treecf5fc21b47bdf745a47541eb8beb2c85084a5015 /webapp/components/suggestion/command_provider.jsx
parentd42459729c6015b07c2f0d872a44212e93bccb39 (diff)
parentc94b7b9d4fe2c51e6427888d9ba6e3d7b8eb321c (diff)
downloadchat-6b9d89522475c84e7833d17179b3af65b92240d6.tar.gz
chat-6b9d89522475c84e7833d17179b3af65b92240d6.tar.bz2
chat-6b9d89522475c84e7833d17179b3af65b92240d6.zip
Merge pull request #2169 from kernicPanel/external-slashcommands-management
PLT-2183 Slash command auto-complete
Diffstat (limited to 'webapp/components/suggestion/command_provider.jsx')
-rw-r--r--webapp/components/suggestion/command_provider.jsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/webapp/components/suggestion/command_provider.jsx b/webapp/components/suggestion/command_provider.jsx
index 36860fa66..204f52483 100644
--- a/webapp/components/suggestion/command_provider.jsx
+++ b/webapp/components/suggestion/command_provider.jsx
@@ -37,9 +37,9 @@ CommandSuggestion.propTypes = {
};
export default class CommandProvider {
- handlePretextChanged(suggestionId, pretext) {
+ handlePretextChanged(suggestionId, pretext, channelId) {
if (pretext.startsWith('/')) {
- AsyncClient.getSuggestedCommands(pretext, suggestionId, CommandSuggestion);
+ AsyncClient.getSuggestedCommands(pretext, channelId, suggestionId, CommandSuggestion);
}
}
}