From 26389994d7a5c75c0d74fa06f786c9013ec9853b Mon Sep 17 00:00:00 2001 From: Elias Nahum Date: Thu, 12 Jul 2018 19:21:53 -0400 Subject: [PATCH] If slash command fails leave the command in the textbox --- app/components/post_textbox/post_textbox.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/components/post_textbox/post_textbox.js b/app/components/post_textbox/post_textbox.js index d16b5d97c..0bc1cb888 100644 --- a/app/components/post_textbox/post_textbox.js +++ b/app/components/post_textbox/post_textbox.js @@ -424,6 +424,8 @@ export default class PostTextbox extends PureComponent { const {error} = await actions.executeCommand(msg, channelId, rootId); if (error) { + this.handleTextChange(msg); + this.changeDraft(msg); Alert.alert( intl.formatMessage({ id: 'mobile.commands.error_title',