Skip to content

Commit a27d6e2

Browse files
committed
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.
1 parent 22d092b commit a27d6e2

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

labs/multiverse/src/widgets/room_view/timeline.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,6 @@ impl Widget for &mut TimelineView<'_> {
102102
let list = List::new(list_items).highlight_spacing(HighlightSpacing::Always);
103103

104104
let mut dummy_list_state = ListState::default();
105-
// Scroll down to the bottom, so we always see the latest message.
106-
//
107-
// TODO: We should probably use the offset here instead of just scrolling down
108-
// since this now selects the last item in the list.
109-
dummy_list_state.scroll_down_by(list.len() as u16);
110105

111106
StatefulWidget::render(list, area, buf, &mut dummy_list_state);
112107
}

0 commit comments

Comments
 (0)