morethanwords / tweb

Telegram Web K, GPL v3
https://web.telegram.org/k/
GNU General Public License v3.0
1.86k stars 595 forks source link

[BUG] I can add myself as a contact, but then I cannot modify or delete this contact #368

Open abacabadabacaba opened 2 weeks ago

abacabadabacaba commented 2 weeks ago

Describe the bug A Telegram user can add themselves to their contact list. There are multiple ways to do it: either by using the phone number, or by opening the "Saved Messages" and using the "Add to contacts" option in the three dots menu.

When I do it, the contact is actually added: I can see it via the API, and the "Add to contacts" option disappears from the three dots menu. But I cannot edit or delete this contact, because the corresponding button is hidden from the UI, and I also cannot see it in the contact list.

To Reproduce Steps to reproduce the behavior:

  1. Open the "Saved messages" chat.
  2. Click on the "Add to contacts" option in the three dots menu.
  3. Confirm adding the contact.
  4. Observe that the "Add to contacts" option is no longer visible, thus the contact must have been added.
  5. Observe that there is to button to modify or delete the contact.
  6. Open the list of contacts. Observe that the contact is not there.

Expected behavior The newly added contact should be visible in the list of contacts. It should be possible to modify and delete it, like all the other contacts. (Or maybe, the server shouldn't allow this, but it does, so the client should play along.)

Desktop (please complete the following information):