fix(desktop): find profileless users by pubkey - #3843
Open
alebairos wants to merge 1 commit into
Open
Conversation
Co-authored-by: alebairos <alexandre.bairos@gmail.com> Signed-off-by: alebairos <alexandre.bairos@gmail.com>
Contributor
|
handy for bare keys. please make sure a typo of 63 hex chars still falls through to normal search and doesnt error the whole picker |
Author
|
Confirmed: exact-key lookup requires exactly 64 hex characters (or a valid npub). A 63-character hex typo returns |
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.
Summary
Allow Desktop channel member search to resolve an exact 64-character hex
pubkey or exact npub even when that community member has no kind-0 profile.
Exact identity queries now fetch the profile event and NIP-43 membership
snapshot together. Profile metadata is preserved when present; otherwise a
bare-key candidate is returned only when the identity is in the community
roster. Existing full-text profile/name search remains unchanged.
The client-side candidate ranker also recognizes canonical npub values so the
exact backend result is not filtered out before display.
Related issue
N/A. No matching open issue or pull request was found.
Testing
just ci875 passed,1 skipped)1,855 passed,14 ignored3 passednon-member rejection, open-relay fallback, and client-side npub ranking.
wss://buzz.alebairos.xyz:channels.
There is no visual layout change, so before/after screenshots are not
applicable. Post-invite profile editing remains a separate follow-up.