fix decryption of protected note revisions

This commit is contained in:
zadam 2019-03-31 22:54:38 +02:00
parent 5bda254184
commit a4c8bdeda2

View File

@ -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) {