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

Max Brunsfeld created

Change summary

crates/project/src/project.rs | 1 +
1 file changed, 1 insertion(+)

Detailed changes

crates/project/src/project.rs 🔗

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