Tell the user if they try to add a contact already in the list

Bug #1373888 reported by Jonathan Cave
34
This bug affects 6 people
Affects Status Importance Assigned to Milestone
Telegram app
Confirmed
Medium
Roberto Mier Escandon

Bug Description

Version: 0.5.2.55

Steps to reproduce:
 * Go to Contacts page
 * Click the + icon
 * Select "Input Manually"
 * Enter the details of a contact that was already in the list (maybe make the name not match)

Current result:
 - the dialog closes, the contact is not added silently
 - if the name is different the old name is kept

Suggestion - Inform the user of what happened - contact already in list! If the name doesn't change the user might not realise what was going on at all and assume some sort of error. Maybe ask whether the details should be updated?

Revision history for this message
Michał Karnicki (karni) wrote :

Roberto, assigned you so you can see and answer my question here - if we add a contact that already exists with a different name, the returned id list doesn't contain that contact, or does it? Should we have a separate way to signal the contact already exists to the UI?

Changed in libqtelegram:
assignee: nobody → Roberto Mier Escandón (rmescandon)
Revision history for this message
Roberto Mier Escandon (rmescandon) wrote : Re: [Bug 1373888] Re: Tell the user if they try to add a contact already in the list

If you add a contact that is already a contact, he is returned in the
response method list, yes. Currently we haven't a way to determinate,
only by using the addContact method, if the contact is an existing
contact. You can query his user type before trying to add it.

On 25/09/14 19:41, Michał Karnicki wrote:
> Roberto, assigned you so you can see and answer my question here - if we
> add a contact that already exists with a different name, the returned id
> list doesn't contain that contact, or does it? Should we have a separate
> way to signal the contact already exists to the UI?
>
> ** Changed in: libqtelegram
> Assignee: (unassigned) => Roberto Mier Escandón (rmescandon)
>

Michał Karnicki (karni)
Changed in libqtelegram:
importance: Undecided → Medium
Michał Karnicki (karni)
Changed in libqtelegram:
status: New → Confirmed
Revision history for this message
Evan Wang (wsy324) wrote :

Found the similar issue of Telegram apps on Arale Phone , fyi.

$ system-image-cli -i
current build number: 170
device name: m75
channel: ubuntu-touch/vivid-proposed
last update: 2015-04-13 03:43:14
version version: 170

Telegram for Ubuntu v1.1.2(95)

When trying to add one contact xxx which already exists via "Enter Details" in Telegram, it also complaints xxx is currently not in Telegram.

Steps to reproduce:
1. Launch Telegram and login
2. Select Contracts from pull-down menu of right
3. Tab on add contact button
4. Select "Enter Details" and input the correct Phone number, First name, Last name of a contact already exists in Telegram
5. Tab on the tick of finish to search

Expected results:
The matched contacts will be displayed

Actual results:
xxx is currently not in Telegram,
"Invite to Telegram", An invite text will be added to your Clipboard

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.