deltachat / deltachat-core-rust

Delta Chat Rust Core library, used by Android/iOS/desktop apps, bindings and bots 📧
https://delta.chat/en/contribute
Other
670 stars 85 forks source link

Latest information from MDS overwrites previous ones #2338

Closed gerryfrancis closed 1 week ago

gerryfrancis commented 3 years ago
link2xt commented 1 year ago

So currently when we receive an NDN we overwrite the last error each time. Being able to see all received NDNs at last in the message info sounds more correct, but I would say it is low priority for now unless someone comes up with a very simple solution.

adbenitez commented 2 weeks ago

we now have another API to get read receipts, that is used by desktop already, UIs should use that, preserving the error is more important now, the read receipts are not necessary in the info message anymore

link2xt commented 2 weeks ago

The issue is not related to read receipts (MDNs) at all and MDNs don't change error messages.

Septias commented 1 week ago

It actually looks like we can easily fix this by just concatenating all nds for instead of generating just one info message:

https://github.com/deltachat/deltachat-core-rust/blob/7b27c8a6cd7369ff013cba631dcfc1c6957dd14f/src/mimeparser.rs#L2203-L2288

link2xt commented 1 week ago

I guess NDNs arrive one after another in two separate messages. E.g. you may receive "user does not exist" for one recipient nearly immediately, then "failed to deliver message" to some unresponsive server week later.

adbenitez commented 1 week ago

The issue is not related to read receipts (MDNs) at all and MDNs don't change error messages.

ah sorry misread, but this is actually happening, it is not only new errors overriding previous one but read receipts also override the error icon in the message with the double checkmark

iequidoo commented 1 week ago

read receipts also override the error icon in the message with the double checkmark

This shouldn't happen anymore, since 1.142.2 Core doesn't update the message state to OutMdnRcvd: a30c6ae1f79490291cc8e355111d0421372cfee1.

Septias commented 1 week ago

If you're sure we can close this as completed, otherwise I can write a test

iequidoo commented 1 week ago

If you're sure we can close this as completed, otherwise I can write a test

NDNs concatenation is still needed, with a test that the resulting error contains both concatenated ones.