initial post reply view

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2024-06-21 11:59:17 -07:00
parent ac0821db79
commit 0b3d6f7e37
8 changed files with 223 additions and 46 deletions

View File

@@ -925,17 +925,10 @@ 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)
.id_source(("post", timeline_ind, note_key))
.ui(&txn, ui);
let id = egui::Id::new(("post", timeline_ind, note.key().unwrap()));
ui::PostReplyView::new(&mut app, &note)
.id_source(id)
.show(ui);
}
});