Skip to content

Use profile push names for sender resolution#7

Merged
steipete merged 2 commits into
openclaw:mainfrom
michalparkola:improve-group-sender-names
May 10, 2026
Merged

Use profile push names for sender resolution#7
steipete merged 2 commits into
openclaw:mainfrom
michalparkola:improve-group-sender-names

Conversation

@michalparkola
Copy link
Copy Markdown
Contributor

Summary

  • read ZWAPROFILEPUSHNAME from the WhatsApp Desktop chat database during import
  • merge profile push names into the existing sender name map
  • prefer that name map before less reliable group-member/message push-name fields
  • add a regression test covering sender names recovered from ZWAPROFILEPUSHNAME and indexed by search

Fixes #6.

Rationale

Some local WhatsApp Desktop archives have group sender fields such as ZWAGROUPMEMBER.ZFIRSTNAME or ZWAMESSAGE.ZPUSHNAME populated with opaque values. ZWAPROFILEPUSHNAME provides another local, read-only JID-to-name source that can improve the existing messages.sender_name value without changing the archive schema.

Because messages.sender_name is already indexed into FTS, this also improves sender-name search for the recovered names.

Testing

go test ./...

@steipete steipete merged commit 372f3ac into openclaw:main May 10, 2026
6 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.

Group message sender names can be imported as opaque values

2 participants