Skip to content

Fix mention detection inside email addresses - #2290

Open
ch4og wants to merge 1 commit into
TelegramMessenger:masterfrom
ch4og:fix-emails-in-bio
Open

Fix mention detection inside email addresses#2290
ch4og wants to merge 1 commit into
TelegramMessenger:masterfrom
ch4og:fix-emails-in-bio

Conversation

@ch4og

@ch4og ch4og commented Aug 19, 2026

Copy link
Copy Markdown

Telegram for iOS incorrectly detects @username mentions inside email addresses in profile bios.

For example, in me@example.com, the @example substring is rendered as a clickable username mention.

Other Telegram clients do not create a mention for the same input:

Telegram iOS
image

Telegram Android
image

Telegram Desktop
image

Telegram Web K
image

Telegram Web A
image

This PR applies same mention boundary mechanism as in android client.

Direct comparison before/after of this PR:

image image

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.

1 participant