ephemeral: always apply timers from system messages

Also extend the tests to catch regressions.
This commit is contained in:
link2xt
2021-09-25 00:00:00 +00:00
parent d8b47dc4aa
commit 3096193d58
2 changed files with 89 additions and 1 deletions

View File

@@ -881,6 +881,7 @@ async fn add_parts(
.await?
.map(|p| p.ephemeral_timer)
== Some(ephemeral_timer)
&& mime_parser.is_system_message != SystemMessage::EphemeralTimerChanged
{
// The message is a Delta Chat message, so we know that previous message according to
// References header is the last message in the chat as seen by the sender. The timer