commit 86b058322147b81339c05154dae50411d77a767f
parent b0c5d2a2c552eb98d3448ffc6bbe4a59dce93f7f
Author: William Casarin <jb55@jb55.com>
Date: Fri, 21 Jun 2024 09:58:47 -0700
use unique id for post/reply view
Signed-off-by: William Casarin <jb55@jb55.com>
Diffstat:
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/app.rs b/src/app.rs
@@ -925,13 +925,17 @@ fn render_nav(routes: Vec<Route>, 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);
}
});