Skip to content

fix(chat): hydrate group delete keys from stored messages - #29

Merged
Neup123 merged 1 commit into
mainfrom
instinct/group-delete-lid
Sep 22, 2026
Merged

Neup123 merged 1 commit into
mainfrom
instinct/group-delete-lid

Conversation

@Neup123

@Neup123 Neup123 commented Sep 22, 2026

Copy link
Copy Markdown
Owner

Summary

  • hydrate incomplete group delete requests from the authoritative stored message key
  • restore LID/PN alternate participant data and addressing mode before the Baileys delete stanza
  • scope key lookup to the current instance, original message ID, and matching chat/group JID
  • retain the caller's requested message ID so hydration cannot redirect deletion
  • add a regression test for n8n-style group deletes containing only group JID, message ID, and participant: @lid

Fixes #22.

Validation

  • npx tsx test/message-key.test.ts
  • npm run lint:check
  • npx tsc --noEmit
  • git diff --check

Live acceptance

No destructive live deletion was run. After deployment, live acceptance needs an explicitly designated disposable group message.

@Neup123
Neup123 merged commit e23fe13 into main Sep 22, 2026
4 checks passed
@Neup123
Neup123 deleted the instinct/group-delete-lid branch September 22, 2026 09:49
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.

chat.deleteMessage route doesnt really work

1 participant