From e88546c43e2551dc551d69d2590b401da5a1f70d Mon Sep 17 00:00:00 2001 From: Julian Montes de Oca Date: Sat, 21 Sep 2024 11:35:22 +0800 Subject: [PATCH] Rename Room to SelectedRoom --- src/app.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/app.rs b/src/app.rs index a2a0424d..58df8925 100644 --- a/src/app.rs +++ b/src/app.rs @@ -150,7 +150,7 @@ impl MatchEvent for App { room_index: _, room_name, } => { - self.app_state.rooms_panel.selected_room = Some(Room { + self.app_state.rooms_panel.selected_room = Some(SelectedRoom { id: room_id.clone(), name: room_name.clone(), }); @@ -209,12 +209,11 @@ pub struct AppState { #[derive(Default, Debug)] pub struct RoomsPanelState { - // pub open_rooms: Vec, - pub selected_room: Option, + pub selected_room: Option, } #[derive(Debug)] -pub struct Room { +pub struct SelectedRoom { pub id: OwnedRoomId, pub name: Option, }