enhance(tasks): show displayname rather than username where appropriate

This commit is contained in:
xeruf 2024-11-24 08:47:57 +01:00
parent b26d64646c
commit 044c853993
1 changed files with 3 additions and 3 deletions

View File

@ -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))
},
}