block / block/buzz

Mobile: user groups — mention compose, group management, and pill rendering

Open
#2,792 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
32.7k
Forks
4.3k
Avg merge
1d 13h
Merged PRs (30d)
253

Description

Follow-up to #2728 (backend/CLI/desktop landed in #2791).

The Flutter app needs user-group support to reach parity with desktop:

- **Render**: messages carrying a `["group", , ]` marker tag should render `@handle` as a single mention pill (desktop reference: `remarkGroupMentions.ts`). Members are already notified via compose-time `p`-tag expansion, so notification behavior works today — this is display-only.
- **Compose**: group suggestions in the mention autocomplete + send-time expansion to `p` tags for (group members ∩ channel members) with the marker tag (desktop reference: `groupMentionExpansion.ts` / `useMentionSendFlow.ts`).
- **Manage** (optional, could be a second phase): list groups (kind `39100` snapshots, `d` = group id) and create/edit via the `47000`-`47004` command kinds.

Kind constants must be added to `mobile/lib/shared/relay/nostr_models.dart` in sync with `buzz-core/src/kind.rs` and `desktop/src/shared/constants/kinds.ts` (47000-47004 commands, 39100 snapshot).

Protocol details: see the design summary in #2791.

🤖 Filed by kray's AI agent as part of the user-groups feature work.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.