Fix the permagrey local-echo bug
This commit is contained in:
parent
e5a4e5b195
commit
2355d5e6b5
2 changed files with 19 additions and 1 deletions
|
@ -54,7 +54,11 @@ module.exports = {
|
|||
};
|
||||
}
|
||||
|
||||
MatrixClientPeg.get().sendMessage(this.props.roomId, content);
|
||||
MatrixClientPeg.get().sendMessage(this.props.roomId, content).then(function() {
|
||||
dis.dispatch({
|
||||
action: 'message_sent'
|
||||
});
|
||||
});
|
||||
this.refs.textarea.getDOMNode().value = '';
|
||||
ev.preventDefault();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue