What's New in v8.5.0
🚀 Minor Release: Contact Webhooks, Chat History for Contact Messages & Newsletter Subscriber Counts
This release enriches the contact webhook payload with a structured phone_number field, persists incoming contact messages into chat history, and fixes newsletter subscriber counts that were missing from the subscribed-list response.
✨ New Features
Structured phone_number on Contact Webhooks (#656)
- Contact webhook payloads now include a structured
phone_numberfield for both single contacts and multi-contact shares - Original
vcardfield is preserved for backward compatibility - Chatwoot forwarding path updated to understand the structured payload
Persist Incoming Contact Messages in Chat Storage (#654)
- Incoming
ContactMessageevents are now serialized into chat history instead of being dropped when the message has no text or media - The phone number embedded in the vCard is preserved in stored content
- Added test coverage for
ContactMessageparsing
🐛 Bug Fixes
Newsletter Subscriber Counts (#660)
- Enrich subscribed newsletter metadata with detail fetches so
subscribers_countis populated when WhatsApp omits it from the subscribed-list response - Base subscribed newsletter list remains the source of truth
- Falls back to the original newsletter metadata if a detail fetch fails
- Fixes #658
🔧 Technical Improvements
Code Modernization
- Remove dead code across the codebase
- Modernize
interface{}toanyfor Go 1.18+ idiomatic style
Dependency Updates
go.mau.fi/whatsmeow: updated to latest (multiple passes)- All Go dependencies kept up-to-date
What's Changed
- fix: enrich newsletter subscriber counts by @aldinokemal in #660
- Add phone number to contact webhook payload by @juliomuhlbauer in #656
- Persist incoming contact messages in chatstorage by @juliomuhlbauer in #654
- chore: remove dead code and modernize interface{} to any by @aldinokemal
- chore: update whatsmeow to latest by @aldinokemal
New Contributors
- @juliomuhlbauer made their first contribution in #656
Full Changelog: v8.4.0...v8.5.0