Repository navigation
Suggest an org's members when you type @ in its thread - #125
Merged
simonhamp merged 1 commit intoOct 29, 2026
Merged
Conversation
Typing "@" in an org thread's message field lists the org's other members above the field, as the web does, and typing on filters them with the web's ranking. Tapping one puts "@handle " in place of what was typed. Closes NativePHP#124.
rohitsasi720
force-pushed
the
feat/remotes-member-mentions
branch
from
October 28, 2026 20:28
aa963c0 to
894e459
Compare
Member
|
beautiful 🙏🏼 |
simonhamp
added a commit
that referenced
this pull request
Oct 29, 2026
Brings in voice notes (#128) and member mentions (#125). The conflicts were both sides adding to the same lists: Lucide icons, plugins, Composer requirements and the end of ConversationTest. The lock is main's plus the clipboard plugin, with mobile-ui moved one commit on to 583bbc5, the merge of NativePHP/mobile-ui#188. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Typing
@in an org thread's message field now lists the org's members above the field, as the web does, and typing on filters them. Closes #124.How it works. The org thread devnull already sends includes its
members, so, like the web'smention-textareawithmembers, the app filters them locally and never asks devnull. The message field reports its caret (@selectionChange), andSuggestsMentionsfinds the@handleright before it using the web'smentionBeforeCaretPattern, so an@in an email address or a URL doesn't count, and neither does a selection. The ranking is the web's: exact handle, then handle prefix, then name prefix, then the rest. Within each rank, people you follow come first, then handles in order, six at most. A bare@puts them under "Members".Picking one replaces only the token with
@handle, adding a space unless one already follows, so the text on both sides stays. It respects the 2,000-character limit the way the web does. The draft is bound with a 150ms debounce, so a pick only goes in while the draft still has the token where the caret found it. Otherwise it does nothing, rather than inserting a stale mention.The list gets a keyed slot above the reply strip that is always there and empty when unused, like the reply and photo slots. Android then never rebuilds the field's row, and the keyboard stays up. On iOS it sits on its own glass, like the reply strip. One-to-one threads are unchanged: the caret handler returns before suggesting anything.
Things to look at:
OrgThreadResourcedrops thesuggests_mentionsandis_followedflags thatConversationThreadQuery::org()works out for the web.Threadnow reads both when present. Until the API sends them, the app leaves you out of the list but can't leave out people you've muted or blocked, or put people you follow first. A small backend PR adding those two fields to the API's members would close that.@in a 94-member org, and picking "@ka" giveshi @KaitoMuraokawith the cursor at the end and the keyboard up. iOS is unchecked, because there was no simulator on this machine. The keyboard is down in the after shots because the screenshot command's dark-mode switch closed it.<does, so capitalised handles sort first.ConversationTestcovers the list opening on@and closing when the caret leaves, the ranking and the six-member cap, leaving out you and anyone devnull flags, nothing in one-to-one threads, emails, URLs and selections, insertion at the end, mid-draft after an emoji and mid-word, and a stale pick.Screenshots
org-thread (with
@typed in the "Mobile app testers" org)No iOS shots: there's no iOS simulator on this machine.