Connect to new rooms

This commit is contained in:
Joscha 2022-06-27 10:14:30 +02:00
parent 05ac42ab78
commit 3e9ceba302
4 changed files with 52 additions and 13 deletions

View file

@ -1,4 +1,5 @@
mod rooms;
mod util;
use std::sync::{Arc, Weak};
use std::time::Duration;
@ -194,7 +195,7 @@ impl Ui {
match self.mode {
Mode::Main => {
self.rooms
.handle_key_event(terminal, size, &self.event_tx, event)
.handle_key_event(terminal, size, &self.event_tx, crossterm_lock, event)
.await
}
Mode::Log => self.log_chat.handle_navigation(terminal, size, event).await,