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

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();