Remove empty chats from the chat list

Note: I had previously opened this issue as https://github.com/deltachat/deltachat-android/issues/3905. I hereby open it as a feature request in the forum.

In the Settings for “Chats and Media”, below “Delete Old Messages”, I have set “Delete Messages from Device” to “After 5 weeks”. Most messages are indeed deleted from the device (also see the bug described in https://github.com/chatmail/core/issues/7170).

This causes my chat list to be filled with lots of empty chats. Both 1:1 chats and old group chats. I am not entirely sure if this is a bug or a feature. However, I would find it a lot more convenient if those empty chats were also removed from the chat list. All the old 1:1 contacts are still in the contacts table anyway, so I can start a new conversation with them at any time by searching their name and selecting the contact (rather than the chat with that contact). The old “groups” are exclusively long-retired multi-recipient email threads. These are almost exclusively of the sort where people just Cc a bunch of other people (including myself) so that nobody can say they haven’t been informed; but where they don’t expect any reply to their multi-Cc email at all. Therefore, my use case might be a little different from people who use Delta Chat in a setting where all of their peers also use Delta Chat. I myself use Delta Chat in a setting where almost all of my peers use different email clients.

In any case, I would find it very convenient if both old 1:1 chats and old group chats were automatically removed from my chat list. If you must, you could add two more toggles below “Delete Old Messages” so I can also select “Remove empty 1:1 conversations from chat list” and “Remove empty group conversations from chat list”. However, I would suggest that old chats be automatically removed from the chat list if “Delete Messages from Device” is set.

Also, one would need to ensure that empty chats are removed only when they are empty because they are old, not when they are empty because they are newly created. Seeing that there is already a created_timestamp in the chats table, those two cases should be easy to differentiate, however.

(this got bumped due to the new closure automation work) I’ve thought about this as well, and the hurdle in the design is that the Contacts and Chats view are one thing, there’s no separate view of the contacts. The design of DC would need to be updated in some fashion so that it more resembles Conversations (in that they keep Contacts and Chats in unique tabs in the app).

The sqlite DB schema has the Contacts in it’s own table which is great, leading me to think it’s something which could be accomplished in the UI without major redesign. I’ll be honest and say I’ve not enough friends using DC, I have one empty chat and it’s with another relay sysop.

I’d welcome the change though to have a unique view on Contacts (and maybe as a followup, should that happen, is Export and Import which reads/writes an LDIF format file). Chats can be repeated, it’s losing my contacts and their fingerprints I worry about.

edit: for clarity I’m not talking about the list of contacts that pops up when you + a new chat, which is serviceable, but instead a dedicated Contacts management view/tab/screen. The existing design was modeled after Signal, which has a “backing store” for Contacts (your built-in phone contacts methods) but DC does not have that integration. Conversations has the same problems as DC and their app design using a dedicated Contacts view is the goal to bring to DC.

The screen that pops up when you tap the floating + seems pretty close to a contact list in my opinion – so I personally don’t see any need for another contacts list.

When I wrote the feature proposal, I was mostly thinking about the non-e2ee-groups and -chats. Since I use Delta Chat for both e2ee- and non-e2ee-messages, every time someone Cc’s me (or sends me a message and Cc’s someone else) a new group is created. I think this is quite good in terms of providing a messenger UI; but I definitely don’t need to preserve these “groups” after the discussion has died down. Similarly, it’s nice to have a chat with no_reply@some-random-online-shop; but once the messages in this chat were garbage-collected, there’s little value in retaining the chat itself.

In my opinion, there’s four separate cases here:

  1. E2EE group chats: These should probably not be garbage-collected as long as I am still part of the group – even if there hasn’t been a message in ages. If I leave a group and all messages are garbage-collected by the “remove from device after …” feature, it might make sense to garbage-collect the group as well.
  2. E2EE 1:1 chats: I don’t have a strong opinion on those. If these chats are garbage-collected and I can re-add them via +, this would be good enough for me. On the other hand, I don’t have that many e2ee 1:1 chats, so I don’t mind them too much.
  3. Non-e2ee group chats: I would really appreciate an option to garbage-collect these (see above). Currently, I do this manually every once in a while.
  4. Non-e2ee 1:1 chats: I believe these should be garbage-collected as well. One drawback to garbage-collecting them would be that a non-e2ee-contact that sends me a message after a long silence would (possibly – depending on implementation details) pop up as a new contact request; but I feel that this would be acceptable if it also means that I can get rid of all those once-only contacts (like no_reply@ or other very task-specific stuff).

Starting with version 2.62 you can’t have unencrypted bidirectional communication unless the profile has a single classic email transport. (You can receive but can’t reply.) If you have a profile for that, it would be severely limited for actual chat use.

It’s easier to just use a classic MUA for unencrypted email.

Also, it would be really odd to see chats magically disappearing from the list.

Starting with version 2.62 you can’t have unencrypted bidirectional communication unless the profile has a single classic email transport.

I recently figured this out the hard way too. Had to remove my fallback relay to regain the ability to send non-e2ee messages. I initially thought this was a bug because the SMTP error message is attributed to the wrong host (i.e. transmission was clearly attempted via the second relay, which failed, but the info message I see in the chat states that the message was rejected by the first relay). Was there any more extensive discussion on this issue already that you could point me to?

It’s easier to just use a classic MUA for unencrypted email.

I totally agree with this statement. (But if I were inclined to go for easy solutions, I wouldn’t be as deep into FOSS as I am.)

Also, it would be really odd to see chats magically disappearing from the list.

I don’t think “remove old chats” is any harder to understand than “remove old messages”. As mentioned in the original proposal, one could add an additional setting to implement this. Something like “Remove old chats after all messages were removed from the device”. That being said, I don’t have particularly strong feelings about this proposal. I just replied because ~pukero bumped this thread.

Let’s wait. There may be some automatic solution that still allows to send unencrypted messages the way we did up to 2.59.1…

Regarding old chats auto removal, it’s not natural at least for me. I do not expect automatic deletion in the chat list. It would require a very well explained option, and I don’t feel that the developers are inclined to adding options. If anything, they are removing them…

There may be some automatic solution that still allows to send unencrypted messages the way we did up to 2.59.1…

If Delta Chat would send replies to non-e2ee-messages via the same relay that received the parent message, this should cover most cases (cf. Sending non-e2ee-messages fails when multiple relays are configured · Issue #8821 · chatmail/core · GitHub).

However, there seem to be very concrete plans to remove support for non-e2ee-messages completely (see Remove the capability to send and receive unencrypted · Issue #8775 · chatmail/core · GitHub). So unless the Delta Chat developers change their mind about this issue, you are probably right that discussing issues related to non-e2ee-messages is probably a moot point.

You are right.

Let’s hope the benefits surpass the inconveniences.