diff --git a/resources/[system]/chat/html/App.js b/resources/[system]/chat/html/App.js
index 77769e1..6e54d2f 100644
--- a/resources/[system]/chat/html/App.js
+++ b/resources/[system]/chat/html/App.js
@@ -77,12 +77,17 @@ window.APP = {
this.oldMessagesIndex = -1;
},
ON_SUGGESTION_ADD({ suggestion }) {
+ const duplicateSuggestion = this.backingSuggestions.find(a => a.name == suggestion.name);
+ if (duplicateSuggestion) {
+ if(suggestion.help || suggestion.params) {
+ duplicateSuggestion.help = suggestion.help || "";
+ duplicateSuggestion.params = suggestion.params || [];
+ }
+ return;
+ }
if (!suggestion.params) {
suggestion.params = []; //TODO Move somewhere else
}
- if (this.backingSuggestions.find(a => a.name == suggestion.name)) {
- return;
- }
this.backingSuggestions.push(suggestion);
},
ON_SUGGESTION_REMOVE({ name }) {