remove error message from chat input on submit

This commit is contained in:
Ramón Souza 2023-05-05 15:00:21 -03:00
parent 9814e4ebaf
commit 7898482c58
2 changed files with 2 additions and 2 deletions

View File

@ -153,7 +153,7 @@ class MessageForm extends PureComponent {
} }
handleSendMessage(escapeHtml(msg)); handleSendMessage(escapeHtml(msg));
this.setState({ message: '', hasErrors: false }); this.setState({ message: '', error: '', hasErrors: false });
} }
setMessageHint() { setMessageHint() {

View File

@ -262,7 +262,7 @@ class MessageForm extends PureComponent {
const callback = this.typingIndicator ? stopUserTyping : null; const callback = this.typingIndicator ? stopUserTyping : null;
handleSendMessage(escapeHtml(msg)); handleSendMessage(escapeHtml(msg));
this.setState({ message: '', hasErrors: false, showEmojiPicker: false }, callback); this.setState({ message: '', error: '', hasErrors: false, showEmojiPicker: false }, callback);
} }
handleEmojiSelect(emojiObject) { handleEmojiSelect(emojiObject) {