Skip to content

Fix: contact_changed event to get the correct newId and oldId#5664

Open
khsoh wants to merge 3 commits intowwebjs:mainfrom
khsoh:feature/fix-contact-changed
Open

Fix: contact_changed event to get the correct newId and oldId#5664
khsoh wants to merge 3 commits intowwebjs:mainfrom
khsoh:feature/fix-contact-changed

Conversation

@khsoh
Copy link
Contributor

@khsoh khsoh commented Dec 13, 2025

PR Details

The newId and oldId returned by the contact_changed event was incorrect for an individual chat.

Description

My bot received a contact_changed event. The oldId and newId were incorrect. After I had dumped out the message, I noted where these fields could be retrieved

Related Issue(s)

Motivation and Context

Fix newId and oldId for contact_changed event

How Has This Been Tested

Environment

  • Machine OS:
  • Phone OS:
  • Library Version:
  • WhatsApp Web Version:
  • Puppeteer Version:
  • Browser Type and Version:
  • Node Version:

Types of changes

  • Dependency change
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • My code follows the code style of this project.
  • I have updated the documentation accordingly (index.d.ts).
  • I have updated the usage example accordingly (example.js)

Copy link
Member

@purpshell purpshell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

needs testing

@purpshell purpshell added the waiting for testers Needs testing label Dec 16, 2025
@khsoh khsoh force-pushed the feature/fix-contact-changed branch from a2347c8 to 114bd91 Compare January 8, 2026 01:15
@khsoh khsoh force-pushed the feature/fix-contact-changed branch from 114bd91 to d51de2a Compare January 19, 2026 14:55
@khsoh khsoh force-pushed the feature/fix-contact-changed branch 2 times, most recently from a4e4d9e to 7c4c3dd Compare February 4, 2026 06:05
@khsoh khsoh force-pushed the feature/fix-contact-changed branch 2 times, most recently from be164f6 to 3e2b985 Compare February 11, 2026 01:27
@khsoh khsoh force-pushed the feature/fix-contact-changed branch 2 times, most recently from 7b969c2 to 8c46898 Compare March 9, 2026 07:39
@khsoh khsoh force-pushed the feature/fix-contact-changed branch from 8c46898 to 3d447c0 Compare March 10, 2026 02:51
@github-actions github-actions bot added the api changes API modifications label Mar 10, 2026
@khsoh khsoh force-pushed the feature/fix-contact-changed branch from 3d447c0 to 6168e52 Compare March 15, 2026 06:48
@khsoh khsoh changed the title Fixed contact_changed event to get the correct newId and oldId Fix: contact_changed event to get the correct newId and oldId Mar 15, 2026
@khsoh khsoh force-pushed the feature/fix-contact-changed branch from c37ca09 to e6185f4 Compare March 16, 2026 14:22
@khsoh khsoh force-pushed the feature/fix-contact-changed branch from e6185f4 to 6b4eef2 Compare March 18, 2026 07:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api changes API modifications waiting for testers Needs testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants