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:
parent
faabd17fc6
commit
31bce2e644
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user