Skip to content

Open a chat with the typed number when Enter is pressed on a contact that has several numbers - #547

Open
RankoR wants to merge 2 commits into
GrapheneOS:mainfrom
RankoR-GOS:fix-542-enter-multi-number-contact
Open

RankoR wants to merge 2 commits into
GrapheneOS:mainfrom
RankoR-GOS:fix-542-enter-multi-number-contact

Conversation

@RankoR

@RankoR RankoR commented Nov 11, 2026

Copy link
Copy Markdown
Member

Closes #542

@HybridStaticAnimate

Copy link
Copy Markdown

Tested on Pixel 10a.

If you search a contact whose number starts with an area code that matches or partially matches a country code, the "send to" dialog appears. This prevents the enter key from opening a conversation with your contact.

For example, entering all 10 digits of a number that has an area code of 337, that area code overlaps with frances country code of 33. So (337) 123-4567 would show "send to +1 (337) 123-4567" and also show that contact below it. Pressing both options enters the same conversation with the same contact.

…aved with a country code by reading it only in the primary country and preferring exact matches, so Enter never picks the same digits in another country
@RankoR

RankoR commented Nov 16, 2026

Copy link
Copy Markdown
Member Author

Fixed in 31f7835

@HybridStaticAnimate

Copy link
Copy Markdown

Tested on Pixel 10a.

Invalid numbers with matching contacts now present only the contact when typed exactly.

LGTM

@RankoR
RankoR requested review from m4pl and sdsantos November 16, 2026 19:58
@RankoR
RankoR marked this pull request as ready for review November 16, 2026 19:58
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.

Enter button won't create a new chat with a contact if the contact has multiple numbers

2 participants