From 86b058322147b81339c05154dae50411d77a767f Mon Sep 17 00:00:00 2001 From: William Casarin Date: Fri, 21 Jun 2024 09:58:47 -0700 Subject: [PATCH] use unique id for post/reply view Signed-off-by: William Casarin --- src/app.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/app.rs b/src/app.rs index 87ff08ac..a6dbe3e7 100644 --- a/src/app.rs +++ b/src/app.rs @@ -925,13 +925,17 @@ fn render_nav(routes: Vec, timeline_ind: usize, app: &mut Damus, ui: &mut return; }; + let note_key = note.key().unwrap(); + let poster = app .account_manager .get_selected_account_index() .unwrap_or(0); let replying_to = note.pubkey(); - ui::PostView::new(&mut app, poster, replying_to).ui(&txn, ui); + ui::PostView::new(&mut app, poster, replying_to) + .id_source(("post", timeline_ind, note_key)) + .ui(&txn, ui); } });