1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-12 22:57:38 +02:00

All: Fixed handling of unloaded master key

This commit is contained in:
Laurent Cozic
2017-12-22 18:50:27 +00:00
parent 6683da804b
commit 70b03971f6
5 changed files with 16 additions and 16 deletions

View File

@ -62,10 +62,10 @@ class DecryptionWorker {
try {
await ItemClass.decrypt(item);
} catch (error) {
if (error.code === 'missingMasterKey') {
if (error.code === 'masterKeyNotLoaded') {
excludedIds.push(item.id);
this.dispatch({
type: 'MASTERKEY_ADD_MISSING',
type: 'MASTERKEY_ADD_NOT_LOADED',
id: error.masterKeyId,
});
continue;