From 8098697847a748ef599d716b262d92ea9802cffa Mon Sep 17 00:00:00 2001 From: Mikayla Maki Date: Wed, 19 Oct 2022 11:45:20 -0700 Subject: [PATCH] Re-removed chat panel --- crates/chat_panel/Cargo.toml | 20 -- crates/chat_panel/src/chat_panel.rs | 434 ---------------------------- 2 files changed, 454 deletions(-) delete mode 100644 crates/chat_panel/Cargo.toml delete mode 100644 crates/chat_panel/src/chat_panel.rs diff --git a/crates/chat_panel/Cargo.toml b/crates/chat_panel/Cargo.toml deleted file mode 100644 index b943757c7a..0000000000 --- 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"] } \ No newline at end of file diff --git a/crates/chat_panel/src/chat_panel.rs b/crates/chat_panel/src/chat_panel.rs deleted file mode 100644 index 595eac5f7a..0000000000 --- a/crates/chat_panel/src/chat_panel.rs +++ /dev/null @@ -1,434 +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