Skip to content

Adding contact with handle fails to create contact properly #685

Open
@lucianolang

Description

Checklist

  • I am reporting an issue in existing functionality that does not work as intended
  • I've searched for existing GitHub issues

Description

When adding a contact that only has a username the url added to the contacts is malformed with this format https://t.me/@idId(rawValue:%)

Expected Behavior

A URL with the format: https://t.me/ so when tapping from the contact app the user gets redirected to the screen.

Actual Behavior

When adding the contact and then tapping the telegram field in the contact app the user is able to go to a chat with that user.

Steps to Reproduce

  1. Start a new chat
  2. Look for a user by their handle
  3. Add to contacts
  4. Open contacts app
  5. Tap on the contacts field

Screenshots and Videos

IMG_0486

Environment

Device: iPhone 13 Pro

iOS version: 15.1.1

App version: 8.3.1

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions