Clear guest's shared buffers if they rejoin project after leaving while host was disconnected

This commit is contained in:
Max Brunsfeld
2023-04-05 16:53:36 -07:00
parent 8e68c7f808
commit bda7086220
+1
View File
@@ -4847,6 +4847,7 @@ impl Project {
let collaborator = Collaborator::from_proto(collaborator)?;
this.update(&mut cx, |this, cx| {
this.shared_buffers.remove(&collaborator.peer_id);
this.collaborators
.insert(collaborator.peer_id, collaborator);
cx.notify();