1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-11-27 08:21:03 +02:00

Mobile: Fixed issue with resources not being downloaded after metadata has been decrypted

This commit is contained in:
Laurent Cozic 2020-06-09 19:56:48 +00:00
parent faabd17fc6
commit 31bce2e644

View File

@ -369,6 +369,10 @@ function resourceFetcher_downloadComplete(event) {
}
}
function decryptionWorker_resourceMetadataButNotBlobDecrypted() {
ResourceFetcher.instance().scheduleAutoAddResources();
}
async function initialize(dispatch) {
shimInit();
@ -498,6 +502,7 @@ async function initialize(dispatch) {
DecryptionWorker.instance().setKvStore(KvStore.instance());
DecryptionWorker.instance().setEncryptionService(EncryptionService.instance());
await EncryptionService.instance().loadMasterKeysFromSettings();
DecryptionWorker.instance().on('resourceMetadataButNotBlobDecrypted', decryptionWorker_resourceMetadataButNotBlobDecrypted);
// ----------------------------------------------------------------
// / E2EE SETUP