All: Fixed: Notify DecryptionWorker when item added due to conflict, to make sure it is decrypted as early as possible

pull/224/head
Laurent Cozic 2018-02-16 17:55:50 +00:00
parent 9474a05aaa
commit a796ef5c66
1 changed files with 2 additions and 0 deletions

View File

@ -378,6 +378,8 @@ class Synchronizer {
local = remoteContent;
const syncTimeQueries = BaseItem.updateSyncTimeQueries(syncTargetId, local, time.unixMs());
await ItemClass.save(local, { autoTimestamp: false, nextQueries: syncTimeQueries });
if (!!local.encryption_applied) this.dispatch({ type: 'SYNC_GOT_ENCRYPTED_ITEM' });
} else {
// Remote no longer exists (note deleted) so delete local one too
await ItemClass.delete(local.id);