Skip to content

Commit

Permalink
feat(email-connector): add document handling, fix activation boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
mathias-vandaele committed Nov 28, 2024
1 parent 673d895 commit 439b9c4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ private void correlateEmail(Message message, InboundConnectorContext connectorCo
}

private List<Document> createDocumentList(Email email, InboundConnectorContext connectorContext) {
if (connectorContext.canActivate(
if (!(connectorContext.canActivate(
new ReadEmailResponse(
email.messageId(),
email.from(),
Expand All @@ -174,7 +174,7 @@ private List<Document> createDocumentList(Email email, InboundConnectorContext c
email.body().bodyAsHtml(),
List.of(),
email.receivedAt()))
instanceof ActivationCheckResult.Success) {
instanceof ActivationCheckResult.Success)) {
return List.of();
} else
return email.body().attachments().stream()
Expand Down

0 comments on commit 439b9c4

Please sign in to comment.