Respond to join project request before sharing project completes
This ensures the guest doesn't observe a huge delay when joining.
This commit is contained in:
parent
09bb3ddeb8
commit
845c79ee05
2 changed files with 6 additions and 7 deletions
|
@ -1332,12 +1332,13 @@ impl Project {
|
|||
let client = self.client.clone();
|
||||
cx.foreground()
|
||||
.spawn(async move {
|
||||
share.await?;
|
||||
client.send(proto::RespondToJoinProjectRequest {
|
||||
requester_id,
|
||||
project_id,
|
||||
allow,
|
||||
})
|
||||
})?;
|
||||
share.await?;
|
||||
anyhow::Ok(())
|
||||
})
|
||||
.detach_and_log_err(cx);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue