diff --git a/ios/App/PrivacyInfo.xcprivacy b/ios/App/PrivacyInfo.xcprivacy index fe840a043..885478f8d 100644 --- a/ios/App/PrivacyInfo.xcprivacy +++ b/ios/App/PrivacyInfo.xcprivacy @@ -1,17 +1,25 @@ - - NSPrivacyAccessedAPITypes - - - NSPrivacyAccessedAPIType - NSPrivacyAccessedAPICategoryFileTimestamp - NSPrivacyAccessedAPITypeReasons - - C617.1 - - - - + + NSPrivacyAccessedAPITypes + + + NSPrivacyAccessedAPIType + NSPrivacyAccessedAPICategoryFileTimestamp + NSPrivacyAccessedAPITypeReasons + + C617.1 + + + + NSPrivacyAccessedAPIType + NSPrivacyAccessedAPICategoryUserDefaults + NSPrivacyAccessedAPITypeReasons + + CA92.1 + + + + diff --git a/src/app/shared/dia-backend/asset/downloading/dia-backend-downloading.service.ts b/src/app/shared/dia-backend/asset/downloading/dia-backend-downloading.service.ts index b5d9f2829..b7480f162 100644 --- a/src/app/shared/dia-backend/asset/downloading/dia-backend-downloading.service.ts +++ b/src/app/shared/dia-backend/asset/downloading/dia-backend-downloading.service.ts @@ -9,7 +9,7 @@ import { getSignatures, getTruth, } from '../../../repositories/proof/old-proof-adapter'; -import { Proof } from '../../../repositories/proof/proof'; +import { Proof, Truth } from '../../../repositories/proof/proof'; import { ProofRepository } from '../../../repositories/proof/proof-repository.service'; import { DiaBackendAsset, @@ -66,12 +66,19 @@ export class DiaBackendAssetDownloadingService { ) { return; } - const proof = new Proof( - this.mediaStore, - getTruth({ + let truth: Truth; + try { + truth = getTruth({ proof: diaBackendAsset.information.proof, information: diaBackendAsset.information.information, - }), + }); + } catch { + return; // Skip storing proof without truth + } + + const proof = new Proof( + this.mediaStore, + truth, getSignatures(diaBackendAsset.signature) ); proof.setIndexedAssets({