Tell project when it has been unshared

Julia and Petros Amoiridis created

Co-Authored-By: Petros Amoiridis <petros@zed.dev>

Change summary

crates/call/src/room.rs | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

Detailed changes

crates/call/src/room.rs 🔗

@@ -803,7 +803,8 @@ impl Room {
             None => return Ok(()),
         };
 
-        self.client.send(proto::UnshareProject { project_id })
+        self.client.send(proto::UnshareProject { project_id })?;
+        project.update(cx, |this, cx| this.unshare(cx))
     }
 
     pub(crate) fn set_location(