Skip to content

Commit

Permalink
Rename Room to SelectedRoom
Browse files Browse the repository at this point in the history
  • Loading branch information
joulei committed Sep 21, 2024
1 parent 8336c57 commit e88546c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
});
Expand Down Expand Up @@ -209,12 +209,11 @@ pub struct AppState {

#[derive(Default, Debug)]
pub struct RoomsPanelState {
// pub open_rooms: Vec<Room>,
pub selected_room: Option<Room>,
pub selected_room: Option<SelectedRoom>,
}

#[derive(Debug)]
pub struct Room {
pub struct SelectedRoom {
pub id: OwnedRoomId,
pub name: Option<String>,
}

0 comments on commit e88546c

Please sign in to comment.