Add attachments and event fields to ChatMessageDto; ignore unknown fields

Fixkamo-shared-library
Shipped
May 1, 2026 at 2:38 PM UTC
Author
Kamo
Commit
6c8b1c3

ChatMessageDto was missing `attachments`, `readMemberId`, `msgIdLastViewed`, `dateLastViewed`, `addedMemberId`, `objImgId`, `transitMemberId`, and `isJoin` fields. Jackson was throwing UnrecognizedPropertyException on every NATS message that included any of these (READ_RECEIPT, CREATE with attachments, etc.), causing ChatSessionSubscriptionManager to abort the relay entirely — attachments and read-receipts never reached WebSocket clients. Also add **************** = true) as a safety net for future event fields without requiring DTO changes.

All changes

Like what you see shipping?

Every one of these updates lands in your workspace automatically. Start free and watch it grow week after week.

Start Free ForeverView Pricing