TelegramMessenger / TelegramMessenger/Telegram-iOS

Can't share contact without phone number

Open
#282 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Swift
Stars
9k
Forks
2.9k
PR merge metrics
No merged PRs in 30d

Description

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

I have a contact with just an email address. It is my printer's contact with its email-ID value only. Its pretty common with new printers to accept printable files through email and print them at remote location. I wanted to share this contact to my friend on Telegram, but it fails to do so. From what I've observed, a contact file needs to have a phone number in it to be sent successful.

Expected Behavior

Contact should be able to be shared with any detail in the contact file, if it has any data, whether it's email or notes in contacts. Having phone number should not be a mandatory behaviour.

Actual Behavior

The window to select contact details just disappears without asking for what information from the contact is to be shared unlike what happens with a contact that has a phone number.

Steps to Reproduce
  1. Save a contact with an email address/notes/other details without a phone number.
  2. Share that contact from the iOS share sheet or from within Telegram.
  3. It doesn't get shared.
Environment

Device: iPhone X

iOS version: 13.3.1

App version: 6.0.1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue with an iOS contact containing only an email address or notes, using both the iOS share sheet and Telegram's in-app sharing flow. Trace the contact-detail selection and sharing path to find why it dismisses without a phone number; done means contacts with non-phone details can be shared successfully without regressing phone-number contacts.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.