token::save() resultified, doc updated

This commit is contained in:
B. Petersen
2021-06-25 14:16:50 +02:00
committed by bjoern
parent 70e776e407
commit 15c38ba395
2 changed files with 28 additions and 21 deletions

View File

@@ -334,16 +334,16 @@ pub async fn set_config_from_qr(context: &Context, qr: &str) -> Result<(), Error
context,
token::Namespace::InviteNumber,
chat_id,
lot.invitenumber.unwrap_or_default(),
&lot.invitenumber.unwrap_or_default(),
)
.await;
.await?;
token::save(
context,
token::Namespace::Auth,
chat_id,
lot.auth.unwrap_or_default(),
&lot.auth.unwrap_or_default(),
)
.await;
.await?;
Ok(())
}
_ => bail!("qr code does not contain config: {}", qr),