Skip to content

fix(mobile): DM add picker cancel and NIP-11 fetch on details - #9510

Open
brow wants to merge 1 commit into
morganm/growable-dms-mobilefrom
studio/9153-dm-picker-fixes
Open

brow wants to merge 1 commit into
morganm/growable-dms-mobilefrom
studio/9153-dm-picker-fixes

Conversation

@brow

@brow brow commented Nov 15, 2026

Copy link
Copy Markdown
Collaborator

Fixes the two blocking findings from the review of #9153 (add members to DM), on top of its branch.

  • iOS: Cancel in the history choice no longer strands the picker. The native picker marks itself busy before it asks Dart to add. When the person cancelled the Include history / Start new DM alert (or the alert failed to present), Dart changed no state, so it never sent the idle state back. The sheet stayed modal with Cancel disabled. Now the sheet rebuilds after every choice, so the picker always gets submitting: false again, and an alert failure shows as the sheet's error like other failures.
  • Channel details stop fetching NIP-11 for every channel. The moderation DM check watched the auto-disposed relay author provider on every details page, so each open of any channel's details issued a NIP-11 GET and rebuilt the page when it landed. It now runs only for DMs, the only place that uses it.

Regressions

None expected. Non-DM details pages do strictly less work. On iOS, the extra rebuild after the choice resends an unchanged state map.

Validation

  • Added test: an iOS native-bridge journey in ios_add_members_sheet_test.dart. It cancels the choice, then hits an alert failure, and checks each time that an update with submitting: false reaches the bridge with the selection intact. A third try chooses Include history and adds. The test fails on the base branch.
  • Full Flutter suite and flutter analyze pass.
  • No simulator run: the fix is confined to the Dart side of an existing bridge, which the test drives.

Review thread

…for DMs

Co-authored-by: studio <dc2fc481343672df31a689840c09299972e704dac592e0da6f18486646a7ee3e@buzz.block.builderlab.xyz>
Signed-off-by: Tom Brow <tomb@squareup.com>
@brow

brow commented Nov 15, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-15T01:01:03.448488Z 9aa7f34 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. You're on a roll.

Reviewed commit: 9aa7f34466

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@brow
brow marked this pull request as ready for review November 15, 2026 00:59
@brow
brow requested a review from a team as a code owner November 15, 2026 00:59

This branch has not been deployed

No deployments
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.

2 participants