mirror of
https://github.com/mikedilger/gossip.git
synced 2024-09-19 19:46:50 +00:00
Add 'Replies To' link on reply posts in Following feed and Person feed
This commit is contained in:
parent
200f5233fb
commit
5ba2122c56
@ -498,6 +498,19 @@ fn render_post_actual(
|
||||
ui.horizontal(|ui| {
|
||||
GossipUi::render_person_name_line(ui, maybe_person.as_ref());
|
||||
|
||||
if app.page == Page::FeedGeneral || app.page == Page::FeedPerson {
|
||||
if let Some((irt, _)) = event.replies_to() {
|
||||
ui.add_space(8.0);
|
||||
|
||||
let idhex: IdHex = irt.into();
|
||||
let nam = format!("replies to #{}", GossipUi::hex_id_short(&idhex));
|
||||
if ui.link(&nam).clicked() {
|
||||
GLOBALS.feed.set_feed_to_thread(irt);
|
||||
app.page = Page::FeedThread;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
ui.add_space(8.0);
|
||||
|
||||
if event.pow() > 0 {
|
||||
|
Loading…
Reference in New Issue
Block a user