clear composer undo history when sending a message
This commit is contained in:
@@ -18,6 +18,10 @@ export const MAX_STEP_LENGTH = 10;
|
||||
|
||||
export default class HistoryManager {
|
||||
constructor() {
|
||||
this.clear();
|
||||
}
|
||||
|
||||
clear() {
|
||||
this._stack = [];
|
||||
this._newlyTypedCharCount = 0;
|
||||
this._currentIndex = -1;
|
||||
|
||||
Reference in New Issue
Block a user