Connect to and disconnect from existing rooms

This commit is contained in:
Joscha 2022-06-27 09:51:12 +02:00
parent 365b3fffd0
commit 05ac42ab78
2 changed files with 51 additions and 4 deletions

View file

@ -192,7 +192,11 @@ impl Ui {
}
match self.mode {
Mode::Main => self.rooms.handle_key_event(terminal, size, event).await,
Mode::Main => {
self.rooms
.handle_key_event(terminal, size, &self.event_tx, event)
.await
}
Mode::Log => self.log_chat.handle_navigation(terminal, size, event).await,
}