From a27d6e26550fd028b3fb988caeeaa004a97def58 Mon Sep 17 00:00:00 2001 From: Benjamin Bouvier Date: Tue, 15 Apr 2025 16:14:54 +0200 Subject: [PATCH] multiverse: prefer rendering back-paginated events instead of timeline's tail This is useful to observe the virtyual start of timeline item in manual testing. --- labs/multiverse/src/widgets/room_view/timeline.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/labs/multiverse/src/widgets/room_view/timeline.rs b/labs/multiverse/src/widgets/room_view/timeline.rs index 40e9ef344..33b377c88 100644 --- a/labs/multiverse/src/widgets/room_view/timeline.rs +++ b/labs/multiverse/src/widgets/room_view/timeline.rs @@ -102,11 +102,6 @@ impl Widget for &mut TimelineView<'_> { let list = List::new(list_items).highlight_spacing(HighlightSpacing::Always); let mut dummy_list_state = ListState::default(); - // Scroll down to the bottom, so we always see the latest message. - // - // TODO: We should probably use the offset here instead of just scrolling down - // since this now selects the last item in the list. - dummy_list_state.scroll_down_by(list.len() as u16); StatefulWidget::render(list, area, buf, &mut dummy_list_state); }