notedeck

One damus client to rule them all
git clone git://jb55.com/notedeck
Log | Files | Refs | README | LICENSE

commit 450709afa756001e52c0827ea539332846cf7946
parent d7a41115beb80b51575878b30f59f04a22e3c977
Author: William Casarin <jb55@jb55.com>
Date:   Thu, 21 Mar 2024 18:23:33 +0100

test: use my timeline query by default for testing

Diffstat:
Msrc/app.rs | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/app.rs b/src/app.rs @@ -302,7 +302,7 @@ fn setup_initial_nostrdb_subs(damus: &mut Damus) -> Result<()> { let res = damus.ndb.query( &txn, filters, - damus.initial_filter[0].limit.unwrap_or(1000) as i32, + damus.initial_filter[0].limit.unwrap_or(200) as i32, )?; damus.timelines[0].notes = res .iter() @@ -442,7 +442,8 @@ impl Damus { let initial_filter = if args.len() > 1 { serde_json::from_str(&args[1]).unwrap() } else { - vec![get_home_filter(initial_limit)] + serde_json::from_str(&include_str!("../queries/timeline.json")).unwrap() + //vec![get_home_filter(initial_limit)] }; let imgcache_dir = data_path.as_ref().join("cache/img"); @@ -744,8 +745,7 @@ fn render_notes(ui: &mut egui::Ui, damus: &mut Damus, timeline: usize, test_pane } fn timeline_view(ui: &mut egui::Ui, app: &mut Damus, timeline: usize, test_panel_id: usize) { - padding(4.0, ui, |ui| ui.heading("Notifications")); - + //padding(4.0, ui, |ui| ui.heading("Notifications")); /* let font_id = egui::TextStyle::Body.resolve(ui.style()); let row_height = ui.fonts(|f| f.row_height(&font_id)) + ui.spacing().item_spacing.y;