enhance(tasks): show displayname rather than username where appropriate
This commit is contained in:
parent
b26d64646c
commit
044c853993
|
@ -308,7 +308,7 @@ impl TasksRelay {
|
||||||
"{} - {} by {}",
|
"{} - {} by {}",
|
||||||
format_timestamp_local(start),
|
format_timestamp_local(start),
|
||||||
format_timestamp_relative_to(end, start),
|
format_timestamp_relative_to(end, start),
|
||||||
self.get_username(key)
|
self.get_displayname(key)
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -316,7 +316,7 @@ impl TasksRelay {
|
||||||
vec.push(format!(
|
vec.push(format!(
|
||||||
"{} started by {}",
|
"{} started by {}",
|
||||||
format_timestamp_local(stamp),
|
format_timestamp_local(stamp),
|
||||||
self.get_username(key)
|
self.get_displayname(key)
|
||||||
))
|
))
|
||||||
});
|
});
|
||||||
vec
|
vec
|
||||||
|
@ -392,7 +392,7 @@ impl TasksRelay {
|
||||||
None => { prompt.push_str(" @ALL"); }
|
None => { prompt.push_str(" @ALL"); }
|
||||||
Some(key) =>
|
Some(key) =>
|
||||||
if key != self.sender.pubkey() {
|
if key != self.sender.pubkey() {
|
||||||
prompt.push_str(" ");
|
prompt.push_str(" @");
|
||||||
prompt.push_str(&self.get_username(&key))
|
prompt.push_str(&self.get_username(&key))
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue