Fix not being able to close nick dialog

This commit is contained in:
Joscha 2022-07-23 23:45:01 +02:00
parent 77c5b479aa
commit 73cb568702
4 changed files with 39 additions and 22 deletions

View file

@ -53,7 +53,7 @@ impl<M: Msg, S: MsgStore<M>> ChatState<M, S> {
}
}
pub async fn handle_navigation(&mut self, event: KeyEvent) {
pub async fn handle_navigation(&mut self, event: KeyEvent) -> bool {
match self.mode {
Mode::Tree => self.tree.handle_navigation(event).await,
}