mirror of
https://github.com/chatmail/core.git
synced 2026-05-22 16:26:31 +03:00
show errors from connect_configured() (as 'IMAP Connect without configured params' (ConnectWithoutConfigure)) as DC_EVENT_ERROR_NETWORK as these may not be shown to the user if there is actually no internet
This commit is contained in:
@@ -105,7 +105,7 @@ async fn fetch(ctx: &Context, connection: &mut Imap) {
|
|||||||
match ctx.get_config(Config::ConfiguredInboxFolder).await {
|
match ctx.get_config(Config::ConfiguredInboxFolder).await {
|
||||||
Some(watch_folder) => {
|
Some(watch_folder) => {
|
||||||
if let Err(err) = connection.connect_configured(&ctx).await {
|
if let Err(err) = connection.connect_configured(&ctx).await {
|
||||||
error!(ctx, "{}", err);
|
error_network!(ctx, "{}", err);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user