mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-28 03:25:59 +00:00
Proceed with share while project state uploads
Co-authored-by: Antonio Scandurra <as-cii@zed.dev>
This commit is contained in:
parent
a656047c15
commit
1f0a9ce418
1 changed files with 5 additions and 5 deletions
|
@ -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| {
|
||||||
|
|
Loading…
Reference in a new issue