From 0fca7ab9c4cbdbb2d94c4b543a93e0d327a5aee1 Mon Sep 17 00:00:00 2001 From: Felipe Freitag Date: Thu, 9 Jul 2026 14:35:10 -0300 Subject: [PATCH] Fix duplicate MessageId in EmailEventData breaking build PR #112 and #123 each added a message_id property to EmailEventData. Git merged both without a textual conflict, producing two properties named MessageId (CS0102) and breaking the build on main since #112 merged. Remove #112's duplicate (which also carried an inaccurate 'only set for EmailReceived' remark) and keep #123's, since the server sends message_id for both outbound and inbound email events. --- src/Resend.Webhooks/EmailEventData.cs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/Resend.Webhooks/EmailEventData.cs b/src/Resend.Webhooks/EmailEventData.cs index 69298e4..f03b7b3 100644 --- a/src/Resend.Webhooks/EmailEventData.cs +++ b/src/Resend.Webhooks/EmailEventData.cs @@ -45,14 +45,6 @@ public class EmailEventData : IWebhookData [JsonIgnore( Condition = JsonIgnoreCondition.WhenWritingNull )] public EmailAddressList? Cc { get; set; } = default!; - /// - /// - /// Only set for , otherwise is null. - /// - [JsonPropertyName( "message_id" )] - [JsonIgnore( Condition = JsonIgnoreCondition.WhenWritingNull )] - public string? MessageId { get; set; } - /// [JsonPropertyName( "subject" )] public string Subject { get; set; } = default!;