summaryrefslogtreecommitdiffstats
path: root/webapp/utils/async_client.jsx
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2016-03-18 13:25:46 -0400
committerChristopher Speller <crspeller@gmail.com>2016-03-18 13:25:46 -0400
commitee2f62a9f8a9a12409cc881ea0e1d747ff20dc13 (patch)
tree52925b8521dd4b8c8291499f76c2ed3c278271f8 /webapp/utils/async_client.jsx
parent6d586c7309cb0ddaca6580dd1520aef4ff554fb5 (diff)
parent35320efe1afad87419992275ba555ddcbfcdf46b (diff)
downloadchat-ee2f62a9f8a9a12409cc881ea0e1d747ff20dc13.tar.gz
chat-ee2f62a9f8a9a12409cc881ea0e1d747ff20dc13.tar.bz2
chat-ee2f62a9f8a9a12409cc881ea0e1d747ff20dc13.zip
Merge pull request #2476 from mattermost/revert-2169-external-slashcommands-management
Revert "PLT-2183 Slash command auto-complete"
Diffstat (limited to 'webapp/utils/async_client.jsx')
-rw-r--r--webapp/utils/async_client.jsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/webapp/utils/async_client.jsx b/webapp/utils/async_client.jsx
index 2392b50b9..d3f91bb0e 100644
--- a/webapp/utils/async_client.jsx
+++ b/webapp/utils/async_client.jsx
@@ -781,12 +781,12 @@ export function savePreferences(preferences, success, error) {
);
}
-export function getSuggestedCommands(command, channelId, suggestionId, component) {
- client.listCommands({command: command, channelId: channelId},
+export function getSuggestedCommands(command, suggestionId, component) {
+ client.listCommands(
(data) => {
var matches = [];
data.forEach((cmd) => {
- if (('/' + cmd.trigger).indexOf(command) === 0 || cmd.external_management) {
+ if (('/' + cmd.trigger).indexOf(command) === 0) {
let s = '/' + cmd.trigger;
let hint = '';
if (cmd.auto_complete_hint && cmd.auto_complete_hint.length !== 0) {