Skip to content

feat: add group participants to get_chat and resolve contact names - #152

Open
claudeholic wants to merge 1 commit into
verygoodplugins:mainfrom
claudeholic:feat/group-participants-contact-name-resolution
Open

feat: add group participants to get_chat and resolve contact names#152
claudeholic wants to merge 1 commit into
verygoodplugins:mainfrom
claudeholic:feat/group-participants-contact-name-resolution

Conversation

@claudeholic

Copy link
Copy Markdown

Summary

  • Add /api/group-info bridge endpoint exposing group participants
    (JID, phone number, LID, admin role) via whatsmeow's GetGroupInfo
  • get_chat for group chats now includes a participants list with
    resolved display names
  • chat_to_dict resolves contact names from whatsmeow_contacts when
    the stored chat name is just a phone number — fixes list_chats
    showing raw numbers instead of names
  • Fix get_contact to fall back to get_sender_name even when a chat
    row exists but has a numeric name

Test plan

  • Call get_chat on a group JID — verify participants array is present
  • Call list_chats — verify private chats show resolved names
  • Call get_contact with a phone number — verify name is resolved
  • Verify non-group chats are unaffected (no participants field)

@claudeholic
claudeholic requested a review from jack-arturo as a code owner July 6, 2026 22:45
@claudeholic
claudeholic force-pushed the feat/group-participants-contact-name-resolution branch from 3a0af7b to ed6599a Compare July 6, 2026 22:51
- Add /api/group-info bridge endpoint that returns group participants
  via whatsmeow's GetGroupInfo (JID, phone number, LID, admin status)
- Enrich get_chat response with participants list for group chats
- Resolve contact display names from whatsmeow_contacts in chat_to_dict
  when the stored name is just a phone number
- Fix get_contact fallback: always try whatsmeow name resolution even
  when a chat row exists with a numeric name
@claudeholic
claudeholic force-pushed the feat/group-participants-contact-name-resolution branch from ed6599a to d86b98b Compare July 6, 2026 22:53
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.

1 participant