mirror of
https://github.com/chatmail/core.git
synced 2026-05-03 05:16:28 +03:00
Do not save svg to file, just print qr text
This commit is contained in:
@@ -491,12 +491,7 @@ pub async fn cmdline(context: Context, line: &str, chat_id: &mut ChatId) -> Resu
|
||||
"send-backup" => {
|
||||
let provider = BackupProvider::prepare(&context).await?;
|
||||
let qr = provider.qr();
|
||||
let rendered = deltachat::qr_code_generator::generate_backup_qr(&context, &qr).await?;
|
||||
let tdir = tempfile::TempDir::new()?;
|
||||
let dir = tdir.path();
|
||||
let file = dir.join("qr.svg");
|
||||
tokio::fs::write(&file, rendered).await?;
|
||||
println!("The QR code is at: {}", file.display());
|
||||
println!("QR code: {}", format_backup(&qr)?);
|
||||
provider.join().await?;
|
||||
}
|
||||
"receive-backup" => {
|
||||
|
||||
Reference in New Issue
Block a user