mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
fix decryption of protected note revisions
This commit is contained in:
parent
5bda254184
commit
a4c8bdeda2
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user