Start work on read-only project access for channel guests

Co-authored-by: Conrad <conrad@zed.dev>
Co-authored-by: Mikayla <mikayla@zed.dev>
This commit is contained in:
Max Brunsfeld
2024-01-03 19:30:32 -07:00
committed by Conrad Irwin
co-authored by Conrad Mikayla
parent 1bc2e0ee5c
commit 28c39aae17
12 changed files with 160 additions and 57 deletions
+1 -1
View File
@@ -1099,7 +1099,7 @@ impl Room {
this.update(&mut cx, |this, cx| {
this.joined_projects.retain(|project| {
if let Some(project) = project.upgrade() {
!project.read(cx).is_read_only()
!project.read(cx).is_disconnected()
} else {
false
}