Skip to content

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

fix: title of locked note cannot be changed

thecodrr52aec19b4c3b
diff --git a/packages/core/api/vault.js b/packages/core/api/vault.js
index df1e4d5e9..c429813a3 100644
--- a/packages/core/api/vault.js
+++ b/packages/core/api/vault.js
@@ -245,7 +245,7 @@ export default class Vault {
/** @private */
async _lockNote(note, password) {
- let { id, content: { type, data } = {}, sessionId } = note;
+ let { id, content: { type, data } = {}, sessionId, title } = note;
note = this._db.notes.note(id).data;
const contentId = note.contentId;
@@ -276,7 +276,7 @@ export default class Vault {
id,
locked: true,
headline: "",
- title: note.title,
+ title: title || note.title,
favorite: note.favorite,
localOnly: note.localOnly,
readonly: note.readonly,