Allow joining worktrees by clicking them in the people panel

Co-Authored-By: Antonio Scandurra <me@as-cii.com>
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
Max Brunsfeld
2021-09-21 12:21:03 -07:00
co-authored by Antonio Scandurra Nathan Sobo
parent 65a3af9bde
commit 412535420b
8 changed files with 74 additions and 49 deletions
+1
View File
@@ -202,6 +202,7 @@ impl Store {
worktrees: Vec::new(),
});
host.worktrees.push(proto::WorktreeMetadata {
id: *worktree_id,
root_name: worktree.root_name.clone(),
is_shared: worktree.share().is_ok(),
guests: guests.into_iter().collect(),