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