Proceed with share while project state uploads
Co-authored-by: Antonio Scandurra <as-cii@zed.dev>
This commit is contained in:
co-authored by
Antonio Scandurra
parent
a656047c15
commit
1f0a9ce418
@@ -398,11 +398,11 @@ impl Room {
|
||||
cx.spawn(|this, mut cx| async move {
|
||||
let response = request.await?;
|
||||
|
||||
project
|
||||
.update(&mut cx, |project, cx| {
|
||||
project.shared(response.project_id, cx)
|
||||
})
|
||||
.await?;
|
||||
project.update(&mut cx, |project, cx| {
|
||||
project
|
||||
.shared(response.project_id, cx)
|
||||
.detach_and_log_err(cx)
|
||||
});
|
||||
|
||||
// If the user's location is in this project, it changes from UnsharedProject to SharedProject.
|
||||
this.update(&mut cx, |this, cx| {
|
||||
|
||||
Reference in New Issue
Block a user