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
|
@ -136,6 +136,10 @@ export default class BasicMessageEditor extends React.Component {
|
|||
return this._lastCaret;
|
||||
}
|
||||
|
||||
clearUndoHistory() {
|
||||
this.historyManager.clear();
|
||||
}
|
||||
|
||||
getCaret() {
|
||||
return this._lastCaret;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue