Skip to content

Fix build errors after whatsmeow API update to latest version#122

Open
ddarth wants to merge 1 commit intonormen:masterfrom
ddarth:master
Open

Fix build errors after whatsmeow API update to latest version#122
ddarth wants to merge 1 commit intonormen:masterfrom
ddarth:master

Conversation

@ddarth
Copy link

@ddarth ddarth commented Feb 23, 2026

Summary

  • Update go.mau.fi/whatsmeow to latest version (v0.0.0-20260219150138-7ae702b1eed4)
  • Add context.Context argument to all whatsmeow API calls that now require it: sqlstore.New, GetFirstDevice, Store.Delete, GetAllContacts, GetGroupInfo, GetContact, MarkRead, SendChatPresence
  • Fix GetQRChannel error being silently ignored (_)
  • Improve QR code event handling: explicit cases for timeout and err events with meaningful error messages

Problem

Without this update, connecting to WhatsApp fails with QR event: err-client-outdated because the previously pinned whatsmeow version is rejected by WhatsApp servers. The new whatsmeow API also requires context.Context as the first argument in most calls, causing build errors.

Test plan

  • go build succeeds without errors
  • QR code appears on first launch
  • Session established after scanning QR code
  • Subsequent launches reconnect automatically

- Update go.mau.fi/whatsmeow to v0.0.0-20260219150138-7ae702b1eed4
- Add context.Context argument to all whatsmeow API calls that now require it:
  sqlstore.New, GetFirstDevice, Store.Delete, GetAllContacts, GetGroupInfo,
  GetContact, MarkRead, SendChatPresence
- Fix GetQRChannel error being silently ignored
- Improve QR code event handling: explicit cases for timeout and err events
  with meaningful error messages instead of a generic fallback

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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