Skip to content

Conversation

@humanagent
Copy link
Contributor

Normalize ENS/Base names to lowercase for case-insensitive matching in xmtp.chat input fields.

This ensures that user-provided ENS/Base names, regardless of casing, correctly resolve to the intended profile when creating direct messages, group conversations, or adding members.


Slack Thread

Open in Cursor Open in Web

Co-authored-by: fguespe <fguespe@gmail.com>
@cursor
Copy link

cursor bot commented Nov 24, 2025

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@changeset-bot
Copy link

changeset-bot bot commented Nov 24, 2025

⚠️ No Changeset found

Latest commit: 509fd12

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel
Copy link

vercel bot commented Nov 24, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
xmtp-js-xmtp-chat Ready Ready Preview Comment Nov 24, 2025 6:01pm
1 Skipped Deployment
Project Deployment Preview Comments Updated (UTC)
xmtp-chat-api-service Skipped Skipped Nov 24, 2025 6:01pm

@macroscopeapp
Copy link

macroscopeapp bot commented Nov 24, 2025

Normalize XMTP name resolution and profile map keys to lowercase across helpers.resolveName, hooks.useMemberId, and stores.profiles

Introduce lowercase normalization for input names during resolution and for profile names map keys, applying the normalized value for cache lookups, API calls, and profile combination.

📍Where to Start

Start with the resolveName helper in names.ts, then follow the call path through useMemberId in useMemberId.ts and the profilesStore actions in profiles.ts.


📊 Macroscope summarized 509fd12. 3 files reviewed, 11 issues evaluated, 10 issues filtered, 1 comment posted. View details

@bennycode
Copy link
Member

@humanagent would it make sense to also automatically remove "spaces" while the name is being entered? I have seen that many people tried to enter "theglobalstore" at the hackathon and their mobile phones were inserting spaces while spaces aren't allowed in ENS names?!

@humanagent
Copy link
Contributor Author

@humanagent would it make sense to also automatically remove "spaces" while the name is being entered? I have seen that many people tried to enter "theglobalstore" at the hackathon and their mobile phones were inserting spaces while spaces aren't allowed in ENS names?!

yes. cc @rygine

@github-actions github-actions bot added the Stale label Nov 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants