Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Remove old code from notes icon click handler

Conrad Irwinf7cd0e84f9c8
diff --git a/crates/collab_ui/src/collab_panel.rs b/crates/collab_ui/src/collab_panel.rs
index 39543c8defe..c21435e0938 100644
--- a/crates/collab_ui/src/collab_panel.rs
+++ b/crates/collab_ui/src/collab_panel.rs
@@ -2086,13 +2086,7 @@ impl CollabPanel {
}
})
.on_click(MouseButton::Left, move |_, this, cx| {
- let participants =
- this.channel_store.read(cx).channel_participants(channel_id);
- if is_active || participants.is_empty() {
- this.open_channel_notes(&OpenChannelNotes { channel_id }, cx);
- } else {
- this.join_channel(channel_id, cx);
- };
+ this.open_channel_notes(&OpenChannelNotes { channel_id }, cx);
}),
)
.align_children_center()