mirror of
https://github.com/chatmail/core.git
synced 2026-05-09 01:46:30 +03:00
Errors are ok, apparently
This commit is contained in:
11
src/job.rs
11
src/job.rs
@@ -703,16 +703,11 @@ 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;
|
|
||||||
}
|
|
||||||
Ok((_1to1_chat, Blocked::Not)) => {
|
|
||||||
chat.id.unblock(context).await;
|
chat.id.unblock(context).await;
|
||||||
}
|
}
|
||||||
Ok(_) => (),
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
Chattype::Single | Chattype::Undefined => {}
|
Chattype::Single | Chattype::Undefined => {}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user