Render NIP-05 dns id (not checking validity, most will be strikethrough still)

This commit is contained in:
Mike Dilger 2022-12-30 09:36:30 +13:00
parent f7e6f567b0
commit 003cb3b3f8

View File

@ -217,6 +217,14 @@ fn render_post(
} else {
ui.label(RichText::new(GossipUi::pubkey_short(&event.pubkey)).weak());
}
if let Some(dns_id) = &person.dns_id {
if person.dns_id_valid > 0 {
ui.label(RichText::new(dns_id).monospace().small());
} else {
ui.label(RichText::new(dns_id).monospace().small().strikethrough());
}
}
}
ui.add_space(8.0);