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:
iequidoo
2025-12-14 13:27:05 -03:00
committed by iequidoo
parent 46ec3a469b
commit c3a6e48882
4 changed files with 10 additions and 9 deletions

View File

@@ -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 { .. } => {