Skip to content

Commit

Permalink
Set headers field to null if excluded
Browse files Browse the repository at this point in the history
  • Loading branch information
tjardoo committed Nov 30, 2023
1 parent de0db7a commit b32604e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Listeners/CreateMailViewerItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ public function handle(MessageSent $event): void
]);
}

private function formatHeaders(Headers $headers): array
private function formatHeaders(Headers $headers): ?array
{
if (! config('mailviewer.database.include.headers')) {
return [];
return null;
}

return [
Expand Down

0 comments on commit b32604e

Please sign in to comment.