mirror of
https://github.com/aljazceru/notedeck.git
synced 2025-12-31 23:14:23 +01:00
timeline: add new notes at the start
still need proper insert logic based on created date
This commit is contained in:
@@ -202,7 +202,7 @@ fn process_event(damus: &mut Damus, _subid: &str, event: Event) {
|
||||
|
||||
let cloned_id = event.id.clone();
|
||||
damus.all_events.insert(cloned_id.clone(), event);
|
||||
damus.events.push(cloned_id);
|
||||
damus.events.insert(0, cloned_id);
|
||||
}
|
||||
|
||||
fn get_unknown_author_ids(damus: &Damus) -> Vec<Pubkey> {
|
||||
@@ -526,6 +526,8 @@ fn render_panel(ctx: &egui::Context, app: &mut Damus) {
|
||||
app.frame_history.fps(),
|
||||
app.frame_history.mean_frame_time() * 1e3
|
||||
));
|
||||
|
||||
ui.label(format!("{} notes", app.events.len()));
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user