deltachat-core
deltachat-core copied to clipboard
Cannot delete referenced contacts
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
Figure 2: Trying to delete contact
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.
moving this to the core, there is nothing android can do about that issue.