Skip to content

Fix duplicate MessageId in EmailEventData breaking build#124

Merged
felipefreitag merged 1 commit into
mainfrom
fix/duplicate-message-id
Jul 9, 2026
Merged

Fix duplicate MessageId in EmailEventData breaking build#124
felipefreitag merged 1 commit into
mainfrom
fix/duplicate-message-id

Conversation

@felipefreitag

@felipefreitag felipefreitag commented Jul 9, 2026

Copy link
Copy Markdown
Member

Problem

main has been failing to build since #112 merged (build: failure on the merge commit).

EmailEventData contains two MessageId properties → error CS0102: the type 'EmailEventData' already contains a definition for 'MessageId'.

Root cause

Two separately-merged PRs each added a message_id property to EmailEventData:

The insertions were at different line ranges, so git merged both with no textual conflict — but the result is a semantically invalid class with a duplicate member. #112's PR CI was green in isolation; the post-merge CI run on main went red and wasn't caught.

Fix

Remove #112's duplicate, keep #123's. #123's is in the correct common position with an accurate summary; #112's also carried a misleading Only set for EmailReceived remark (the server sends message_id for outbound events too), so dropping it fixes an inaccuracy as well.

Verification

Local build + full test suite on .NET 8 (matching CI): build succeeds, 122/122 tests pass.


Summary by cubic

Fixes a build failure by removing the duplicate MessageId property from EmailEventData. Keeps the canonical property and removes the incorrect “only set for EmailReceived” remark, since the server sends message_id for both inbound and outbound events.

Written for commit 0fca7ab. Summary will update on new commits.

Review in cubic

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.
@felipefreitag felipefreitag merged commit cc36363 into main Jul 9, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants