Skip to content

Build your personal knowledge base with Trilium Notes

fix decryption of protected note revisions

zadama4c8bdeda21a
diff --git a/src/services/protected_session.js b/src/services/protected_session.js
index d79002b635..553b1b7569 100644
--- a/src/services/protected_session.js
+++ b/src/services/protected_session.js
@@ -83,11 +83,11 @@ function decryptNoteRevision(hist) {
try {
if (hist.title) {
- hist.title = dataEncryptionService.decryptString(dataKey, hist.title);
+ hist.title = dataEncryptionService.decryptString(dataKey, hist.title.toString());
}
if (hist.content) {
- hist.content = dataEncryptionService.decryptString(dataKey, hist.content);
+ hist.content = dataEncryptionService.decryptString(dataKey, hist.content.toString());
}
}
catch (e) {