mirror of
https://github.com/zadam/trilium.git
synced 2025-11-07 22:05:44 +01:00
fix decryption of protected note revisions
This commit is contained in:
@@ -83,11 +83,11 @@ function decryptNoteRevision(hist) {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
if (hist.title) {
|
if (hist.title) {
|
||||||
hist.title = dataEncryptionService.decryptString(dataKey, hist.title);
|
hist.title = dataEncryptionService.decryptString(dataKey, hist.title.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (hist.content) {
|
if (hist.content) {
|
||||||
hist.content = dataEncryptionService.decryptString(dataKey, hist.content);
|
hist.content = dataEncryptionService.decryptString(dataKey, hist.content.toString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (e) {
|
catch (e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user