1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-15 23:00:36 +02:00

Cli: Fixes #2981: Add support for retrying decryption after it has failed multiple times

This commit is contained in:
Laurent Cozic
2020-04-08 18:02:31 +01:00
parent a6459d3641
commit 7ccd19e21d
7 changed files with 54 additions and 29 deletions

View File

@ -89,6 +89,10 @@ class DecryptionWorker {
await this.kvStore().deleteValue(`decrypt:${typeId}:${itemId}`);
}
async clearDisabledItems() {
await this.kvStore().deleteByPrefix('decrypt:');
}
dispatchReport(report) {
const action = Object.assign({}, report);
action.type = 'DECRYPTION_WORKER_SET';