Don't show share button for remote projects

Antonio Scandurra and Max Brunsfeld created

Co-Authored-By: Max Brunsfeld <max@zed.dev>

Change summary

crates/collab_ui/src/collab_titlebar_item.rs | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)

Detailed changes

crates/collab_ui/src/collab_titlebar_item.rs 🔗

@@ -54,7 +54,10 @@ impl View for CollabTitlebarItem {
 
         let mut container = Flex::row();
         if workspace.read(cx).client().status().borrow().is_connected() {
-            if project.is_shared() || ActiveCall::global(cx).read(cx).room().is_none() {
+            if project.is_shared()
+                || project.is_remote()
+                || ActiveCall::global(cx).read(cx).room().is_none()
+            {
                 container.add_child(self.render_toggle_contacts_button(&theme, cx));
             } else {
                 container.add_child(self.render_share_button(&theme, cx));