From 24fbea1557bd9d2f2903c6ccc2791db19093ce55 Mon Sep 17 00:00:00 2001 From: Mikayla Maki Date: Fri, 18 Aug 2023 15:34:35 -0700 Subject: [PATCH] Update collab_panel.rs --- crates/collab_ui/src/collab_panel.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/collab_ui/src/collab_panel.rs b/crates/collab_ui/src/collab_panel.rs index fb0547cd44..c49011b86b 100644 --- a/crates/collab_ui/src/collab_panel.rs +++ b/crates/collab_ui/src/collab_panel.rs @@ -86,7 +86,7 @@ impl_actions!( ] ); -const CHANNELS_PANEL_KEY: &'static str = "ChannelsPanel"; +const COLLABORATION_PANEL_KEY: &'static str = "CollaborationPanel"; pub fn init(_client: Arc, cx: &mut AppContext) { settings::register::(cx); @@ -464,7 +464,7 @@ impl CollabPanel { cx.spawn(|mut cx| async move { let serialized_panel = if let Some(panel) = cx .background() - .spawn(async move { KEY_VALUE_STORE.read_kvp(CHANNELS_PANEL_KEY) }) + .spawn(async move { KEY_VALUE_STORE.read_kvp(COLLABORATION_PANEL_KEY) }) .await .log_err() .flatten() @@ -493,7 +493,7 @@ impl CollabPanel { async move { KEY_VALUE_STORE .write_kvp( - CHANNELS_PANEL_KEY.into(), + COLLABORATION_PANEL_KEY.into(), serde_json::to_string(&SerializedChannelsPanel { width })?, ) .await?;