From 83571aaf88c5952371b805dbfb9102b1ce2c2833 Mon Sep 17 00:00:00 2001 From: William Casarin Date: Sat, 10 Feb 2024 16:14:52 -0800 Subject: [PATCH] note: show non-displayname if we have it Signed-off-by: William Casarin --- src/app.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app.rs b/src/app.rs index 76aa259..56c9c54 100644 --- a/src/app.rs +++ b/src/app.rs @@ -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 {