mirror of
https://github.com/chatmail/core.git
synced 2026-04-25 09:26:30 +03:00
Resultify join_securejoin
This gets rid of ChatId::new(0) usage and is generally a nice first refactoing step. The complexity of cleanup() unravels nicely.
This commit is contained in:
@@ -410,7 +410,7 @@ async fn handle_cmd(
|
||||
"joinqr" => {
|
||||
ctx.start_io().await;
|
||||
if !arg0.is_empty() {
|
||||
dc_join_securejoin(&ctx, arg1).await;
|
||||
dc_join_securejoin(&ctx, arg1).await?;
|
||||
}
|
||||
}
|
||||
"exit" | "quit" => return Ok(ExitResult::Exit),
|
||||
|
||||
Reference in New Issue
Block a user