mirror of
https://github.com/chatmail/core.git
synced 2026-04-29 03:16:29 +03:00
Add "Configuration failed" stock string
This commit is contained in:
committed by
link2xt
parent
f5b16cf086
commit
ecbc83390e
@@ -4924,8 +4924,9 @@ void dc_event_unref(dc_event_t* event);
|
|||||||
#define DC_STR_EPHEMERAL_FOUR_WEEKS 81
|
#define DC_STR_EPHEMERAL_FOUR_WEEKS 81
|
||||||
#define DC_STR_VIDEOCHAT_INVITATION 82
|
#define DC_STR_VIDEOCHAT_INVITATION 82
|
||||||
#define DC_STR_VIDEOCHAT_INVITE_MSG_BODY 83
|
#define DC_STR_VIDEOCHAT_INVITE_MSG_BODY 83
|
||||||
|
#define DC_STR_CONFIGURATION_FAILED 84
|
||||||
|
|
||||||
#define DC_STR_COUNT 83
|
#define DC_STR_COUNT 84
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* @}
|
* @}
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ use crate::message::Message;
|
|||||||
use crate::oauth2::*;
|
use crate::oauth2::*;
|
||||||
use crate::provider::{Protocol, Socket, UsernamePattern};
|
use crate::provider::{Protocol, Socket, UsernamePattern};
|
||||||
use crate::smtp::Smtp;
|
use crate::smtp::Smtp;
|
||||||
|
use crate::stock::StockMessage;
|
||||||
use crate::{chat, e2ee, provider};
|
use crate::{chat, e2ee, provider};
|
||||||
|
|
||||||
use auto_mozilla::moz_autoconfigure;
|
use auto_mozilla::moz_autoconfigure;
|
||||||
@@ -117,7 +118,17 @@ impl Context {
|
|||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
Err(err) => {
|
Err(err) => {
|
||||||
progress!(self, 0, Some(err.to_string()));
|
progress!(
|
||||||
|
self,
|
||||||
|
0,
|
||||||
|
Some(
|
||||||
|
self.stock_string_repl_str(
|
||||||
|
StockMessage::ConfigurationFailed,
|
||||||
|
err.to_string(),
|
||||||
|
)
|
||||||
|
.await
|
||||||
|
)
|
||||||
|
);
|
||||||
Err(err)
|
Err(err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -216,6 +216,9 @@ pub enum StockMessage {
|
|||||||
|
|
||||||
#[strum(props(fallback = "You are invited to a video chat, click %1$s to join."))]
|
#[strum(props(fallback = "You are invited to a video chat, click %1$s to join."))]
|
||||||
VideochatInviteMsgBody = 83,
|
VideochatInviteMsgBody = 83,
|
||||||
|
|
||||||
|
#[strum(props(fallback = "Configuration failed. Error: “%1$s”"))]
|
||||||
|
ConfigurationFailed = 84,
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user