Delete existing rooms

This commit is contained in:
Joscha 2022-06-27 10:19:17 +02:00
parent 3e9ceba302
commit 19d9a19c06
2 changed files with 29 additions and 0 deletions

View file

@ -225,6 +225,15 @@ impl Rooms {
}
}
}
KeyCode::Char('D') => {
if let Some(cursor) = &self.cursor {
if let Some(room) = rooms.get(cursor.index) {
self.euph_rooms.remove(room);
self.euph_chats.remove(room);
self.vault.euph(room.clone()).delete();
}
}
}
_ => {}
}
}