Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix: clear note history when note is locked

thecodrr2bb1d3253337
diff --git a/packages/core/api/vault.js b/packages/core/api/vault.js
index 00ef8fddd..3a4e3d3e7 100644
--- a/packages/core/api/vault.js
+++ b/packages/core/api/vault.js
@@ -119,6 +119,7 @@ export default class Vault {
await this._check();
await this._lockNote({ id: noteId }, this._password);
+ await this._db.noteHistory.clearSessions(noteId);
}
/**