summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--i18n/en.json2
-rw-r--r--webapp/components/create_post.jsx9
2 files changed, 6 insertions, 5 deletions
diff --git a/i18n/en.json b/i18n/en.json
index ff34cf54f..807612d32 100644
--- a/i18n/en.json
+++ b/i18n/en.json
@@ -429,7 +429,7 @@
},
{
"id": "api.command.execute_command.not_found.app_error",
- "translation": "Command with a trigger of '{{.Trigger}}' not found"
+ "translation": "Command with a trigger of '{{.Trigger}}' not found. To send a message beginning with \"/\", try adding an empty space at the beginning of the message."
},
{
"id": "api.command.execute_command.save.app_error",
diff --git a/webapp/components/create_post.jsx b/webapp/components/create_post.jsx
index 4587f3a90..e7fafc514 100644
--- a/webapp/components/create_post.jsx
+++ b/webapp/components/create_post.jsx
@@ -170,10 +170,11 @@ export default class CreatePost extends React.Component {
if (err.sendMessage) {
this.sendMessage(post);
} else {
- const state = {};
- state.serverError = err.message;
- state.submitting = false;
- this.setState({state});
+ this.setState({
+ serverError: err.message,
+ submitting: false,
+ message: post.message
+ });
}
}
);