Repository navigation
fix(baileys): keep the offline queue running when a status ack fails - #2804
Merged
Merged
Conversation
In rc.9 the offline node loop awaits each handler without a catch, so a failed status ack ended the loop with isProcessing still set and no later offline node was processed until the socket reconnected.
Contributor
Reviewer's GuideImplementationCatch status acknowledgement failures and report them through
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Merged
5 tasks done
6 of 7 tasks
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.
📋 Description
Follow-up to #2788. In Baileys
7.0.0-rc.9the offline node loop awaits each handler without acatch. If a status ack fails while the socket is still open, the loop exits withisProcessingstill set, and no later offline node (status or message) is processed until the socket reconnects.handleStatusnow catches the error and reports it throughonUnexpectedError, the same way therc13patch ondevelopdoes. Onlypatches/baileys+7.0.0-rc.9.patchchanges.🔗 Related Issue
Follow-up to #2788.
🧪 Type of Change
🧪 Testing
baileys@7.0.0-rc.9from npm:baileys@7.0.0-rc.9 ✔, and re-runningpatch-packageis a no-op.<status>nodes emitted onCB:statusand the outgoing acks decoded: online, offline, ignored JID andparticipantcases are acked withclass="status"and the originaltype.<status>is still acked. Without this change it is not (queue stalled).npm run buildandnpm run lint:check(pre-push hook).✅ Checklist
Summary by Sourcery
Bug Fixes: