deleteAttachment method

Future<DecryptedDocumentDto?> deleteAttachment(
  1. UserDto user,
  2. String documentId,
  3. 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));
}