deleteAttachment method
Future<DecryptedDocumentDto?>
deleteAttachment(
- UserDto user,
- String documentId,
- CryptoConfig<
DecryptedDocumentDto, DocumentDto> config
Implementation
Future<DecryptedDocumentDto?> deleteAttachment(UserDto user, String documentId, CryptoConfig<DecryptedDocumentDto, DocumentDto> config) async {
return await (await this.rawDeleteAttachment(documentId))?.let((it) => config.decryptDocument(user.dataOwnerId()!, it));
}