Proceed with share while project state uploads

Co-authored-by: Antonio Scandurra <as-cii@zed.dev>
This commit is contained in:
Max Brunsfeld 2022-10-11 10:17:20 -07:00
parent a656047c15
commit 1f0a9ce418

View file

@ -398,11 +398,11 @@ impl Room {
cx.spawn(|this, mut cx| async move { cx.spawn(|this, mut cx| async move {
let response = request.await?; let response = request.await?;
project.update(&mut cx, |project, cx| {
project project
.update(&mut cx, |project, cx| { .shared(response.project_id, cx)
project.shared(response.project_id, cx) .detach_and_log_err(cx)
}) });
.await?;
// If the user's location is in this project, it changes from UnsharedProject to SharedProject. // If the user's location is in this project, it changes from UnsharedProject to SharedProject.
this.update(&mut cx, |this, cx| { this.update(&mut cx, |this, cx| {