deltachat-core icon indicating copy to clipboard operation
deltachat-core copied to clipboard

Cannot delete referenced contacts

Open adbenitez opened this issue 6 years ago • 2 comments

This is related to the closed issue: #479 I have some contacts that refuse to be deleted ;) If I search for the word "github" I get as results that there are 1 contact matching but there are no chats with this contact as shown in the search results in Figure 1. Also this contact isn't in the blocked contacts list, in case that could cause trouble. Trying to delete the contact shows a Toast with text "can't delete contacts with ongoing chats" as shown in Figure 2.

  • Platform (android/blackberry/anbox): Android 6.0
  • Device: BLU
  • Delta Chat Version: 0.100 and some versions ago ;)
  • Steps to reproduce the problem: no idea
  • Screenshots:

Figure 1: Searching for github

screenshot_20190124-224544

Figure 2: Trying to delete contact

screenshot_20190124-224625

adbenitez avatar Jan 25 '19 21:01 adbenitez

yip, from an ux-view, this is pretty ugly.

we should allow deletion of any contact in the contact list, so that it is simply no longer there.

however, currently, the list is just a view on the contact database and contacts in use cannot be deleted. i assume delta is right also above. - i examined many errors like the above in the past, and in all situations, the contact was needed in fact - reasons may be pending deletions, contact request and others - and maybe even more in the future eg. when it comes to showing the "adder" of members. or remembering the receivers on a per-message base. or whatever.

internally, a contact is only an email-address+name. on a soft-deletion, we could wipe at least the name if no hard-deletion is possible.

r10s avatar Jan 25 '19 21:01 r10s

moving this to the core, there is nothing android can do about that issue.

r10s avatar Jun 04 '19 21:06 r10s