Skip to content

fix(cli): list DMs from canonical metadata - #7030

Open
RossHartmann wants to merge 1 commit into
block:mainfrom
Kiingo:upstream/fix-dm-canonical-inventory-20260829
Open

fix(cli): list DMs from canonical metadata#7030
RossHartmann wants to merge 1 commit into
block:mainfrom
Kiingo:upstream/fix-dm-canonical-inventory-20260829

Conversation

@RossHartmann

Copy link
Copy Markdown

Summary

  • list DMs from the canonical kind:39000 channel metadata already emitted by DM creation
  • retain exact #p participant scoping and defensively require both t=dm and the viewer's p tag
  • cover canonical DM recognition and rejection of streams or other participants' DMs

Why

buzz dms list currently queries kind:41001, but the relay does not produce that kind. Canonical DM creation already publishes kind:39000 metadata with d, participant p, and t=dm tags, so using that metadata restores inventory without adding another relay event shape.

Validation

  • cargo fmt -p buzz-cli -- --check
  • cargo test -p buzz-cli commands::dms
  • cargo clippy -p buzz-cli --all-targets -- -D warnings

Signed-off-by: Ross Hartmann <1750494+RossHartmann@users.noreply.github.com>
@RossHartmann
RossHartmann requested a review from a team as a code owner August 29, 2026 08:52
@github-actions

Copy link
Copy Markdown

🔐 Codex Security Review

Status: review required for the current range.

The current range is 00e61eafa917d296104006576b7a2ddbfd58bb5a...417abe7b08bdae55a54305a8fcea74f18a450cd9.
A new review must complete for this exact range. When manual authorization
is required, a Block organization member must comment exactly
@buzz-security-review 417abe7b08bdae55a54305a8fcea74f18a450cd9 to authorize a new review.
Any previous review applies only to its recorded range.

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