mirror of
https://github.com/mikedilger/gossip.git
synced 2024-09-19 03:33:53 +00:00
Render NIP-05 dns id (not checking validity, most will be strikethrough still)
This commit is contained in:
parent
f7e6f567b0
commit
003cb3b3f8
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user