Track focus in room

This commit is contained in:
Joscha 2022-09-25 20:02:58 +02:00
parent 147c3eaf92
commit 8703a62887
4 changed files with 33 additions and 6 deletions

View file

@ -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)),
}