fix: Baileys 6.17 compat, getMessage retry, debug logging#84
Merged
Conversation
- Named import for makeWASocket (default export removed in 6.17) - proto loaded via createRequire (not statically analyzable as ESM export) - getMessage falls back to DB lookup then empty proto.Message instead of undefined, fixing "waiting for this message" on self-chat retries - Added qrcode dependency for browser QR auth method - Verbose debug logging for message lifecycle (upsert, candidate, skip reasons) - cachedGroupMetadata + LID phone mapping via chats.phoneNumberShare event - Group metadata normalization for outbound sends (LID→phone in participants) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Old 6.7.x can't decrypt messages with newer WhatsApp protocol, causing "waiting for this message" on all received messages. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Removed verbose message lifecycle logging (upsert counts, candidate descriptions, skip reasons, delivered details) that was added during debugging. Kept functional changes only. Added getMessageContentById to db.ts for getMessage retry fallback. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Not working, still get the "Waiting for this message" |
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
makeWASocketis now a named export (no longer default).protoloaded viacreateRequiresince it's not statically analyzable as an ESM named export from the CJS module.getMessageContentById) then emptyproto.Messageinstead ofundefined, fixing "waiting for this message" on self-chat retries.qrcodepackage for browser QR auth method.cachedGroupMetadata+ LID→phone mapping viachats.phoneNumberShareevent. Normalized group metadata for outbound sends.Test plan
🤖 Generated with Claude Code