decrypt magic metadata for older client synced files
This commit is contained in:
parent
232d8d96e7
commit
aca7da35fa
|
@ -243,8 +243,11 @@ export async function changeFilesVisibility(
|
||||||
file.magicMetadata = NEW_MAGIC_METADATA;
|
file.magicMetadata = NEW_MAGIC_METADATA;
|
||||||
}
|
}
|
||||||
if (typeof file.magicMetadata.data === 'string') {
|
if (typeof file.magicMetadata.data === 'string') {
|
||||||
logError(Error('magic metadata not decrypted'), '');
|
file.magicMetadata.data = (await worker.decryptMetadata(
|
||||||
return;
|
file.magicMetadata.data,
|
||||||
|
file.magicMetadata.header,
|
||||||
|
file.key
|
||||||
|
)) as MagicMetadataProps;
|
||||||
}
|
}
|
||||||
// copies the existing magic metadata properties of the files and updates the visibility value
|
// copies the existing magic metadata properties of the files and updates the visibility value
|
||||||
// The expected behaviour while updating magic metadata is to let the existing property as it is and update/add the property you want
|
// The expected behaviour while updating magic metadata is to let the existing property as it is and update/add the property you want
|
||||||
|
|
Loading…
Reference in a new issue