Repository navigation
feat/add-skip-delivery-flag - #7
Draft
Balasaheb-Dubale wants to merge 2 commits into
Draft
Balasaheb-Dubale wants to merge 2 commits into
Balasaheb-Dubale wants to merge 2 commits into
Conversation
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.
Pull Request Template
Description
Change Summary
Problem
Creating outgoing messages via the Account API triggers
SendReplyJobandEmailReplyWorker, causing real delivery to recipients (Twilio, Email, etc.). This blocks safe migration of legacy conversations into Chatwoot.Solution
Added a
skip_deliveryguard to both delivery jobs. Whencontent_attributes.skip_deliveryistrueon a message, delivery is silently skipped.Files Changed
app/jobs/send_reply_job.rbskip_deliveryis setapp/workers/email_reply_worker.rbskip_deliveryis setspec/jobs/send_reply_job_spec.rbspec/workers/email_reply_worker_spec.rbUsage
Pass
skip_delivery: trueincontent_attributeswhen creating migrated messages:{ "content": "Migrated message", "message_type": "outgoing", "content_attributes": { "skip_delivery": true } }Zero impact on normal flow
The flag key is absent from all standard message paths — agent replies, campaigns, automations, macros, and templates are completely unaffected.
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration.
Checklist: