clear composer undo history when sending a message
This commit is contained in:
parent
0adca10f9f
commit
9bc8ff7e1e
3 changed files with 10 additions and 0 deletions
|
@ -100,6 +100,8 @@ export default class SendMessageComposer extends React.Component {
|
|||
const {roomId} = this.props.room;
|
||||
this.context.matrixClient.sendMessage(roomId, createMessageContent(this.model, this.props.permalinkCreator));
|
||||
this.model.reset([]);
|
||||
this._editorRef.clearUndoHistory();
|
||||
|
||||
if (isReply) {
|
||||
// Clear reply_to_event as we put the message into the queue
|
||||
// if the send fails, retry will handle resending.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue