Skip to content

fix(relay): allow deleting archived channels - #4669

Open
sweetpeahospitality-hue wants to merge 1 commit into
block:mainfrom
sweetpeahospitality-hue:fix/delete-archived-channels
Open

fix(relay): allow deleting archived channels#4669
sweetpeahospitality-hue wants to merge 1 commit into
block:mainfrom
sweetpeahospitality-hue:fix/delete-archived-channels

Conversation

@sweetpeahospitality-hue

Copy link
Copy Markdown

Summary

  • allow an authorized NIP-29 kind:9008 delete event on an archived channel
  • share the archived-channel lifecycle exception across both relay validation gates
  • add unit coverage and an end-to-end regression for archive-then-delete

Root cause

The relay rejected every event on an archived channel except an explicit unarchive. That rejected kind:9008 before owner authorization and the existing soft-delete handler could run.

Testing

  • cargo test -p buzz-relay archived_channel_ (3 passed)
  • cargo clippy -p buzz-relay --all-targets -- -D warnings
  • cargo test -p buzz-test-client --test e2e_relay --no-run
  • cargo fmt --all -- --check
  • cargo test -p buzz-relay (832 passed; 9 unrelated DB-backed failures from Sqlx(PoolTimedOut) and the resulting 500-vs-404 assertions; 37 ignored)

Buzz source channel: cff6052e-5fd2-4e4b-a435-b4b1591c20a9

Co-authored-by: Christopher Stimson <sweetpeahospitality@gmail.com>
Signed-off-by: Christopher Stimson <sweetpeahospitality@gmail.com>
@sweetpeahospitality-hue
sweetpeahospitality-hue requested a review from a team as a code owner August 4, 2026 05:55
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