Make new ChatMsg trait for Chat message rendering

This commit is contained in:
Joscha 2022-08-01 19:57:05 +02:00
parent 5c9c6e9d98
commit 4ac0b5f074
13 changed files with 122 additions and 69 deletions

View file

@ -18,6 +18,8 @@ use crate::ui::widgets::Widget;
use self::cursor::Cursor;
use super::ChatMsg;
///////////
// State //
///////////
@ -115,7 +117,7 @@ pub struct TreeView<M: Msg, S: MsgStore<M>>(Arc<Mutex<InnerTreeViewState<M, S>>>
#[async_trait]
impl<M, S> Widget for TreeView<M, S>
where
M: Msg,
M: Msg + ChatMsg,
M::Id: Send + Sync,
S: MsgStore<M> + Send + Sync,
{