notedeck

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

commit 5b67a53b619b06be6d6cf8a8d70e749b0c97f139
parent f46797ea10763a9878f1bcc08f85cd541070a69c
Author: William Casarin <jb55@jb55.com>
Date:   Sun, 24 Dec 2023 18:13:08 -0800

render only 50 events for now until we have infinite scroll

Diffstat:
Msrc/app.rs | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/app.rs b/src/app.rs @@ -445,7 +445,7 @@ fn render_notes(ui: &mut egui::Ui, damus: &mut Damus) { #[cfg(feature = "profiling")] puffin::profile_function!(); - for i in 0..damus.events.len() { + for i in 0..damus.events.len().min(50) { if !damus.all_events.contains_key(&damus.events[i]) { continue; }