note: show non-displayname if we have it

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2024-02-10 16:14:52 -08:00
parent 9feb6465c0
commit 83571aaf88

View File

@@ -483,6 +483,8 @@ fn render_username(ui: &mut egui::Ui, profile: Option<&ProfileRecord>, pk: &[u8;
if let Some(prof) = profile.record.profile() {
if let Some(display_name) = prof.display_name() {
ui_abbreviate_name(ui, display_name, 20);
} else if let Some(name) = prof.name() {
ui_abbreviate_name(ui, name, 20);
}
}
} else {