Skip to content

fix(channels): Retry works on a failed message sent through a channel account - #534

Merged
setkyar merged 1 commit into
mainfrom
fix/retry-channel-message
Dec 3, 2026
Merged

setkyar merged 1 commit into
mainfrom
fix/retry-channel-message

Conversation

@setkyar

@setkyar setkyar commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

What

POST /api/messages/:id/retry only resent through a linked WhatsApp phone. For a message sent through any other channel account it answered 404, so the Retry button did nothing.

  • A failed send through a channel account is put back in the outbound queue. It stays the same message, so nothing is duplicated in the thread.
  • The acceptance and left-conversation checks apply, as for a new send.
  • Two retries at once queue it once; a message that went out cannot be retried.
  • Linked WhatsApp phones keep the existing path.

Testing

Integration test added: a refused send, a retry, and the retry of a message that already went out (24 pass locally with a database). Typecheck and lint clean.

… account

Retry only knew how to resend through a linked WhatsApp phone and answered
404 for any other channel. A failed send through a channel account is now
put back in the outbound queue as the same message, with the same checks a
new send gets. Pressing Retry twice queues it once.
@setkyar
setkyar merged commit 05b8c5c into main Dec 3, 2026
9 checks passed
@setkyar
setkyar deleted the fix/retry-channel-message branch December 3, 2026 15:15
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