Couple worktree sharing with project metadata updates

This commit is contained in:
Antonio Scandurra 2023-01-06 10:31:36 -07:00
parent 5c05b7d413
commit 8c5a0ca3a4
2 changed files with 15 additions and 37 deletions

View file

@ -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| {