Broadcast only visible worktree root names
This commit is contained in:
parent
cfbd8b94d1
commit
68093342e7
6 changed files with 34 additions and 23 deletions
|
@ -277,9 +277,10 @@ impl Store {
|
|||
if project.host_user_id == user_id {
|
||||
metadata.push(proto::ProjectMetadata {
|
||||
id: project_id,
|
||||
worktree_root_names: project
|
||||
visible_worktree_root_names: project
|
||||
.worktrees
|
||||
.values()
|
||||
.filter(|worktree| worktree.visible)
|
||||
.map(|worktree| worktree.root_name.clone())
|
||||
.collect(),
|
||||
guests: project
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue