mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-26 03:59:55 +00:00
Clear guest's shared buffers if they rejoin project after leaving while host was disconnected
This commit is contained in:
parent
8e68c7f808
commit
bda7086220
1 changed files with 1 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue