Fix marking read receipts as seen

If mvbox_move was on and an mdn was received, it was not marked as read.

Also remove a confusing log that said that we are adding a markseen job, even if we weren't. As job::save() logs itself, there is no need to log this again.
This commit is contained in:
Hocuri
2020-12-19 23:32:45 +01:00
parent ff3dd878c5
commit 53fed91a17
3 changed files with 27 additions and 3 deletions

View File

@@ -836,8 +836,8 @@ async fn add_parts(
if is_mdn || is_location_kml {
is_hidden = true;
if state == MessageState::InFresh {
state = MessageState::InNoticed;
if state == MessageState::InFresh || state == MessageState::InNoticed {
state = MessageState::InSeen; // Set the state to InSeen so that precheck_imf() adds a markseen job after we moved the message
}
}