From 3633f091c52ff6ab21a8ce79660241e4f7d8475b Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Wed, 20 Sep 2023 13:45:32 -0700 Subject: [PATCH] Fix opening channel notes from context menu --- crates/collab_ui/src/collab_panel.rs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/crates/collab_ui/src/collab_panel.rs b/crates/collab_ui/src/collab_panel.rs index 8315f0b6dd..66f5de1cde 100644 --- a/crates/collab_ui/src/collab_panel.rs +++ b/crates/collab_ui/src/collab_panel.rs @@ -87,7 +87,7 @@ struct ManageMembers { #[derive(Debug, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)] pub struct OpenChannelNotes { - pub channel_id: u64, + pub channel_id: ChannelId, } #[derive(Debug, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)] @@ -95,11 +95,6 @@ pub struct JoinChannelCall { pub channel_id: u64, } -#[derive(Debug, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)] -struct OpenChannelBuffer { - channel_id: ChannelId, -} - #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)] struct StartMoveChannelFor { channel_id: ChannelId, @@ -155,7 +150,6 @@ impl_actions!( ToggleCollapse, OpenChannelNotes, JoinChannelCall, - OpenChannelBuffer, LinkChannel, StartMoveChannelFor, StartLinkChannelFor, @@ -2318,7 +2312,7 @@ impl CollabPanel { items.push(ContextMenuItem::action( "Open Notes", - OpenChannelBuffer { + OpenChannelNotes { channel_id: path.channel_id(), }, ));