diff options
author | Joram Wilander <jwawilander@gmail.com> | 2016-12-06 10:50:56 -0500 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2016-12-06 10:50:56 -0500 |
commit | 42f28886cca4ddf0f2814ce27d6dfbce95aa1625 (patch) | |
tree | 1ae919a51b7d3b606a3c49aebfc963d778f1c265 /webapp | |
parent | 026553e4f87bfc647a5c03129752e30fc523fa07 (diff) | |
download | chat-42f28886cca4ddf0f2814ce27d6dfbce95aa1625.tar.gz chat-42f28886cca4ddf0f2814ce27d6dfbce95aa1625.tar.bz2 chat-42f28886cca4ddf0f2814ce27d6dfbce95aa1625.zip |
Autocomplete is now case insensitive (#4709)
Diffstat (limited to 'webapp')
-rw-r--r-- | webapp/stores/suggestion_store.jsx | 2 | ||||
-rw-r--r-- | webapp/utils/async_client.jsx | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/webapp/stores/suggestion_store.jsx b/webapp/stores/suggestion_store.jsx index 39bea0b0c..83c0c2a17 100644 --- a/webapp/stores/suggestion_store.jsx +++ b/webapp/stores/suggestion_store.jsx @@ -232,6 +232,8 @@ class SuggestionStore extends EventEmitter { this.clearSuggestions(id); } + other.pretext = other.pretext.toLowerCase(); + this.setPretext(id, other.pretext); this.emitPretextChanged(id, other.pretext); diff --git a/webapp/utils/async_client.jsx b/webapp/utils/async_client.jsx index 481f85000..9bcb4e07f 100644 --- a/webapp/utils/async_client.jsx +++ b/webapp/utils/async_client.jsx @@ -989,7 +989,7 @@ export function getSuggestedCommands(command, suggestionId, component) { } }, (err) => { - dispatchError(err, 'getCommandSuggestions'); + dispatchError(err, 'getSuggestedCommands'); } ); } |