Track focus in room
This commit is contained in:
parent
147c3eaf92
commit
8703a62887
4 changed files with 33 additions and 6 deletions
|
|
@ -66,7 +66,8 @@ impl<M: Msg, S: MsgStore<M>> ChatState<M, S> {
|
|||
&self.store
|
||||
}
|
||||
|
||||
pub fn widget(&self, nick: String) -> Chat<M, S> {
|
||||
pub fn widget(&self, nick: String, focus: bool) -> Chat<M, S> {
|
||||
// TODO Handle focus
|
||||
match self.mode {
|
||||
Mode::Tree => Chat::Tree(self.tree.widget(nick)),
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue