mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-09-21 15:56:10 +08:00
Draft “commit time” is the time the write starts, not the time the write finishes
This commit is contained in:
parent
adbae6657c
commit
2c630c47bc
|
@ -101,9 +101,9 @@ export class DraftChangeSet extends EventEmitter {
|
|||
|
||||
if (this.dirtyFields().length > 0) {
|
||||
this.clearDelayedCommit();
|
||||
this._lastCommitTime = performance.now();
|
||||
this._commitPromise = this.callbacks.onCommit();
|
||||
await this._commitPromise;
|
||||
this._lastCommitTime = performance.now();
|
||||
this._commitPromise = null;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue