diff --git a/Cargo.lock b/Cargo.lock index dad1219ddf33923c80845edef255020bd3e4813e..ea877a39d26286dc99d98aea9ea60769b70a7a27 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -814,22 +814,6 @@ version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" -[[package]] -name = "chat_panel" -version = "0.1.0" -dependencies = [ - "client", - "editor", - "gpui", - "menu", - "postage", - "settings", - "theme", - "time 0.3.11", - "util", - "workspace", -] - [[package]] name = "chrono" version = "0.4.19" @@ -7138,7 +7122,6 @@ dependencies = [ "auto_update", "backtrace", "breadcrumbs", - "chat_panel", "chrono", "cli", "client", diff --git a/crates/chat_panel/Cargo.toml b/crates/chat_panel/Cargo.toml deleted file mode 100644 index 3f3a2651b0e63022d21b66bcdeb62ca981d90a55..0000000000000000000000000000000000000000 --- a/crates/chat_panel/Cargo.toml +++ /dev/null @@ -1,20 +0,0 @@ -[package] -name = "chat_panel" -version = "0.1.0" -edition = "2021" - -[lib] -path = "src/chat_panel.rs" -doctest = false - -[dependencies] -client = { path = "../client" } -editor = { path = "../editor" } -gpui = { path = "../gpui" } -menu = { path = "../menu" } -settings = { path = "../settings" } -theme = { path = "../theme" } -util = { path = "../util" } -workspace = { path = "../workspace" } -postage = { version = "0.4.1", features = ["futures-traits"] } -time = { version = "0.3", features = ["serde", "serde-well-known"] } diff --git a/crates/chat_panel/src/chat_panel.rs b/crates/chat_panel/src/chat_panel.rs deleted file mode 100644 index 6744ae9339ec027623673901218bd53d90d860d6..0000000000000000000000000000000000000000 --- a/crates/chat_panel/src/chat_panel.rs +++ /dev/null @@ -1,433 +0,0 @@ -use client::{ - channel::{Channel, ChannelEvent, ChannelList, ChannelMessage}, - Client, -}; -use editor::Editor; -use gpui::{ - actions, - elements::*, - platform::CursorStyle, - views::{ItemType, Select, SelectStyle}, - AnyViewHandle, AppContext, Entity, ModelHandle, MouseButton, MutableAppContext, RenderContext, - Subscription, Task, View, ViewContext, ViewHandle, -}; -use menu::Confirm; -use postage::prelude::Stream; -use settings::{Settings, SoftWrap}; -use std::sync::Arc; -use time::{OffsetDateTime, UtcOffset}; -use util::{ResultExt, TryFutureExt}; - -const MESSAGE_LOADING_THRESHOLD: usize = 50; - -pub struct ChatPanel { - rpc: Arc, - channel_list: ModelHandle, - active_channel: Option<(ModelHandle, Subscription)>, - message_list: ListState, - input_editor: ViewHandle, - channel_select: ViewHandle