From fc3d754aeae69f71dd59deacba95987f31064586 Mon Sep 17 00:00:00 2001 From: Mikayla Maki Date: Wed, 4 Oct 2023 15:15:25 -0700 Subject: [PATCH] Remove old code from notes icon click handler (#3085) Release Notes: - Fix clicking the notes icon when people are in the channel (preview only) --- crates/collab_ui/src/collab_panel.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/crates/collab_ui/src/collab_panel.rs b/crates/collab_ui/src/collab_panel.rs index 7bcaa5be6616e5a795542c5d6912161b97b26366..66913c2da7b1c3af608fc2dc03e66275be16a952 100644 --- a/crates/collab_ui/src/collab_panel.rs +++ b/crates/collab_ui/src/collab_panel.rs @@ -2107,13 +2107,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()