mirror of
https://github.com/chatmail/core.git
synced 2026-05-05 06:16:30 +03:00
docs: set_config_from_qr() configures context for "DCACCOUNT:" and "DCLOGIN:" QRs (#7450)
Also remove "you can now call 'configure'" from the REPL output, probably users of the REPL tool can read the code documentation to know when 'configure' should be run.
This commit is contained in:
@@ -834,6 +834,8 @@ pub(crate) async fn login_param_from_account_qr(
|
||||
}
|
||||
|
||||
/// Sets configuration values from a QR code.
|
||||
/// "DCACCOUNT:" and "DCLOGIN:" QR codes configure `context`, but I/O mustn't be started for such QR
|
||||
/// codes, consider using [`Context::add_transport_from_qr`] which also restarts I/O.
|
||||
pub async fn set_config_from_qr(context: &Context, qr: &str) -> Result<()> {
|
||||
match check_qr(context, qr).await? {
|
||||
Qr::Account { .. } => {
|
||||
|
||||
Reference in New Issue
Block a user