Change order of syncs during linking
This commit is contained in:
parent
4f869e7900
commit
3b4106d9dd
5 changed files with 142 additions and 90 deletions
|
@ -1312,7 +1312,6 @@ async function sync(
|
|||
);
|
||||
}
|
||||
|
||||
window.Signal.Util.postLinkExperience.stop();
|
||||
log.info('storageService.sync: complete');
|
||||
return manifest;
|
||||
}
|
||||
|
@ -1453,6 +1452,9 @@ export const runStorageServiceSyncJob = debounce(() => {
|
|||
ourProfileKeyService.blockGetWithPromise(
|
||||
storageJobQueue(async () => {
|
||||
await sync();
|
||||
|
||||
// Notify listeners about sync completion
|
||||
window.Whisper.events.trigger('storageService:syncComplete');
|
||||
}, `sync v${window.storage.get('manifestVersion')}`)
|
||||
);
|
||||
}, 500);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue