use unique id for post/reply view

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2024-06-21 09:58:47 -07:00
parent b0c5d2a2c5
commit 86b0583221

View File

@@ -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);
}
});