Simplify function call

This commit is contained in:
Joscha 2022-09-10 01:03:02 +02:00
parent 8eaec4426b
commit bc54184b13
2 changed files with 3 additions and 1 deletions

View file

@ -485,7 +485,7 @@ impl Rooms {
key!(Esc) => self.state = State::ShowList,
key!(Enter) if editor.text() == *name => {
self.euph_rooms.remove(name);
self.vault.euph().room(name.clone()).delete();
self.vault.euph().delete(name.clone());
self.state = State::ShowList;
}
_ => {