Fix #1739 LastSubject should not be updated for read receipt (#1744)

* Fix #1739 LastSubject should not be updated for read receipt

* .
This commit is contained in:
Hocuri
2020-07-23 11:57:54 +02:00
committed by GitHub
parent b4c412ee68
commit 0131980372
2 changed files with 60 additions and 10 deletions

View File

@@ -867,15 +867,17 @@ async fn add_parts(
chat.update_param(context).await?;
Ok(())
}
update_last_subject(context, chat_id, mime_parser)
.await
.unwrap_or_else(|e| {
warn!(
context,
"Could not update LastSubject of chat: {}",
e.to_string()
)
});
if !is_mdn {
update_last_subject(context, chat_id, mime_parser)
.await
.unwrap_or_else(|e| {
warn!(
context,
"Could not update LastSubject of chat: {}",
e.to_string()
)
});
}
Ok(())
}