Make new ChatMsg trait for Chat message rendering
This commit is contained in:
parent
5c9c6e9d98
commit
4ac0b5f074
13 changed files with 122 additions and 69 deletions
|
|
@ -10,7 +10,7 @@ use toss::terminal::Terminal;
|
|||
|
||||
use crate::euph::api::{SessionType, SessionView};
|
||||
use crate::euph::{self, Joined, Status};
|
||||
use crate::vault::{EuphMsg, EuphVault};
|
||||
use crate::vault::EuphVault;
|
||||
|
||||
use super::chat::ChatState;
|
||||
use super::widgets::background::Background;
|
||||
|
|
@ -37,7 +37,7 @@ pub struct EuphRoom {
|
|||
state: State,
|
||||
|
||||
room: Option<euph::Room>,
|
||||
chat: ChatState<EuphMsg, EuphVault>,
|
||||
chat: ChatState<euph::Message, EuphVault>,
|
||||
nick_list: ListState<String>,
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue