Errors are ok, apparently

This commit is contained in:
Floris Bruynooghe
2021-02-14 15:01:50 +01:00
parent f464e43ba9
commit 04a978687f

View File

@@ -703,15 +703,10 @@ impl Job {
}; };
match chat.typ { match chat.typ {
Chattype::Group | Chattype::Mailinglist => { Chattype::Group | Chattype::Mailinglist => {
match chat::lookup_by_contact_id(context, msg.from_id).await { if let Ok((_1to1_chat, Blocked::Not)) =
Err(e) => { chat::lookup_by_contact_id(context, msg.from_id).await
warn!(context, "can't get chat: {:#}", e); {
return Status::RetryLater; chat.id.unblock(context).await;
}
Ok((_1to1_chat, Blocked::Not)) => {
chat.id.unblock(context).await;
}
Ok(_) => (),
} }
} }
Chattype::Single | Chattype::Undefined => {} Chattype::Single | Chattype::Undefined => {}