Fix compile error (use of moved value)

Piotr Osiewicz created

Change summary

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

Detailed changes

crates/collab_ui/src/collab_titlebar_item.rs 🔗

@@ -78,6 +78,7 @@ impl View for CollabTitlebarItem {
         let user = self.user_store.read(cx).current_user();
         let peer_id = self.client.peer_id();
         if let Some(((user, peer_id), room)) = user
+            .as_ref()
             .zip(peer_id)
             .zip(ActiveCall::global(cx).read(cx).room().cloned())
         {