Handle unshared projects when rejoining a room
Also, construct remote projects via the room, to guarantee that the room can manage the projects' sharing lifecycle. Co-authored-by: Antonio Scandurra <antonio@zed.dev>
This commit is contained in:
parent
9d15b3d295
commit
55ebfe8321
7 changed files with 120 additions and 48 deletions
|
@ -1146,7 +1146,7 @@ impl Project {
|
|||
}
|
||||
}
|
||||
|
||||
fn disconnected_from_host(&mut self, cx: &mut ModelContext<Self>) {
|
||||
pub fn disconnected_from_host(&mut self, cx: &mut ModelContext<Self>) {
|
||||
if let Some(ProjectClientState::Remote {
|
||||
sharing_has_stopped,
|
||||
..
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue