From 044c853993aceda811bbfde892aac64db3b98abc Mon Sep 17 00:00:00 2001 From: xeruf <27jf@pm.me> Date: Sun, 24 Nov 2024 08:47:57 +0100 Subject: [PATCH] enhance(tasks): show displayname rather than username where appropriate --- src/tasks.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tasks.rs b/src/tasks.rs index 4eeabee..ffe42de 100644 --- a/src/tasks.rs +++ b/src/tasks.rs @@ -308,7 +308,7 @@ impl TasksRelay { "{} - {} by {}", format_timestamp_local(start), format_timestamp_relative_to(end, start), - self.get_username(key) + self.get_displayname(key) )) } } @@ -316,7 +316,7 @@ impl TasksRelay { vec.push(format!( "{} started by {}", format_timestamp_local(stamp), - self.get_username(key) + self.get_displayname(key) )) }); vec @@ -392,7 +392,7 @@ impl TasksRelay { None => { prompt.push_str(" @ALL"); } Some(key) => if key != self.sender.pubkey() { - prompt.push_str(" "); + prompt.push_str(" @"); prompt.push_str(&self.get_username(&key)) }, }