notedeck

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

commit 1e0228e396367ddbdb3855e5622e1cf550e56782
parent e5ab8d5b9c65d309931dfec4562085fa3f3fb0f8
Author: William Casarin <jb55@jb55.com>
Date:   Sat, 14 Dec 2024 00:06:33 -0800

Fix notes note updating in profile view

Fixes: https://github.com/damus-io/notedeck/issues/576
Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Mcrates/notedeck_columns/src/ui/profile/mod.rs | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/crates/notedeck_columns/src/ui/profile/mod.rs b/crates/notedeck_columns/src/ui/profile/mod.rs @@ -1,12 +1,14 @@ pub mod picture; pub mod preview; +use crate::notes_holder::NotesHolder; use crate::ui::note::NoteOptions; use egui::{ScrollArea, Widget}; use enostr::Pubkey; use nostrdb::{Ndb, Transaction}; pub use picture::ProfilePic; pub use preview::ProfilePreview; +use tracing::error; use crate::{actionbar::NoteAction, notes_holder::NotesHolderStorage, profile::Profile}; @@ -67,6 +69,11 @@ impl<'a> ProfileView<'a> { profile.timeline.selected_view = tabs_ui(ui); + // poll for new notes and insert them into our existing notes + if let Err(e) = profile.poll_notes_into_view(&txn, self.ndb, is_muted) { + error!("Profile::poll_notes_into_view: {e}"); + } + let reversed = false; TimelineTabView::new(