Skip to content

Commit

Permalink
Fix notes note updating in profile view
Browse files Browse the repository at this point in the history
Fixes: #576
Signed-off-by: William Casarin <[email protected]>
  • Loading branch information
jb55 committed Dec 14, 2024
1 parent e5ab8d5 commit 1e0228e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions crates/notedeck_columns/src/ui/profile/mod.rs
Original file line number Diff line number Diff line change
@@ -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};

Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 1e0228e

Please sign in to comment.