Fix build errors after whatsmeow API update to latest version#122
Open
ddarth wants to merge 1 commit intonormen:masterfrom
Open
Fix build errors after whatsmeow API update to latest version#122ddarth wants to merge 1 commit intonormen:masterfrom
ddarth wants to merge 1 commit intonormen:masterfrom
Conversation
- 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
go.mau.fi/whatsmeowto latest version (v0.0.0-20260219150138-7ae702b1eed4)context.Contextargument to all whatsmeow API calls that now require it:sqlstore.New,GetFirstDevice,Store.Delete,GetAllContacts,GetGroupInfo,GetContact,MarkRead,SendChatPresenceGetQRChannelerror being silently ignored (_)timeoutanderrevents with meaningful error messagesProblem
Without this update, connecting to WhatsApp fails with
QR event: err-client-outdatedbecause the previously pinned whatsmeow version is rejected by WhatsApp servers. The new whatsmeow API also requirescontext.Contextas the first argument in most calls, causing build errors.Test plan
go buildsucceeds without errors