Delete existing rooms
This commit is contained in:
parent
3e9ceba302
commit
19d9a19c06
2 changed files with 29 additions and 0 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue