Couple worktree sharing with project metadata updates
This commit is contained in:
parent
5c05b7d413
commit
8c5a0ca3a4
2 changed files with 15 additions and 37 deletions
|
@ -774,10 +774,8 @@ impl Room {
|
|||
let response = request.await?;
|
||||
|
||||
project.update(&mut cx, |project, cx| {
|
||||
project
|
||||
.shared(response.project_id, cx)
|
||||
.detach_and_log_err(cx)
|
||||
});
|
||||
project.shared(response.project_id, cx)
|
||||
})?;
|
||||
|
||||
// If the user's location is in this project, it changes from UnsharedProject to SharedProject.
|
||||
this.update(&mut cx, |this, cx| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue