Skip to content

Commit 8e19eeb

Browse files
committed
remove RoomsPanelAction
1 parent 2b84756 commit 8e19eeb

File tree

2 files changed

+1
-15
lines changed

2 files changed

+1
-15
lines changed

src/home/main_desktop_ui.rs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -399,20 +399,6 @@ impl WidgetMatchEvent for MainDesktopUI {
399399
}
400400
}
401401

402-
/// Actions sent to/from the rooms panel that affect the RoomsList
403-
/// or one of the RoomScreen widgets.
404-
#[derive(Clone, DefaultNone, Debug)]
405-
pub enum RoomsPanelAction {
406-
None,
407-
/// Notifies that a room was focused.
408-
RoomFocused(SelectedRoom),
409-
/// Resets the focus to none, meaning that no room has focus.
410-
FocusNone,
411-
/// Save the dock state from the dock to the AppState.
412-
DockSave,
413-
/// Load the room panel state from the AppState to the dock.
414-
DockLoad,
415-
}
416402
/// Actions sent to the MainDesktopUI widget for saving/restoring its dock state.
417403
#[derive(Clone, Debug, DefaultNone)]
418404
pub enum MainDesktopUiAction {

src/sliding_sync.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1488,8 +1488,8 @@ async fn async_main_loop(
14881488
.await?;
14891489

14901490
// Attempt to load the previously-saved rooms panel state.
1491+
// Include this after re-login.
14911492
handle_load_rooms_panel_state(logged_in_user_id.to_owned());
1492-
14931493
handle_sync_service_state_subscriber(sync_service.state());
14941494
sync_service.start().await;
14951495
let room_list_service = sync_service.room_list_service();

0 commit comments

Comments
 (0)