fix various parsing and sending issues

This commit is contained in:
dignifiedquire
2019-12-01 21:32:15 +01:00
parent 04ec7f86ef
commit 62a2f70fab
6 changed files with 270 additions and 227 deletions

View File

@@ -1111,7 +1111,7 @@ pub fn mdn_from_ext(
return None;
}
if let Ok((msg_id, chat_id, chat_type, msg_state)) = context.sql.query_row(
let res = context.sql.query_row(
concat!(
"SELECT",
" m.id AS msg_id,",
@@ -1131,7 +1131,12 @@ pub fn mdn_from_ext(
row.get::<_, MessageState>("state")?,
))
},
) {
);
if let Err(ref err) = res {
info!(context, "Failed to select MDN {:?}", err);
}
if let Ok((msg_id, chat_id, chat_type, msg_state)) = res {
let mut read_by_all = false;
// if already marked as MDNS_RCVD msgstate_can_fail() returns false.