web: use singular version of view_address for From

This commit is contained in:
Bill Thiede 2023-11-27 17:20:11 -08:00
parent e0fbb0253e
commit d66a7d3d53

View File

@ -1039,7 +1039,7 @@ fn view_thread(thread: &ShowThreadQueryThread) -> Node<Msg> {
/* TODO(wathiede): collect all the attachments from all the subparts */ /* TODO(wathiede): collect all the attachments from all the subparts */
msg.from msg.from
.as_ref() .as_ref()
.map(|from| div![C!["header"], "From: ", view_addresses(&[from])]), .map(|from| div![C!["header"], "From: ", view_address(&from)]),
msg.timestamp msg.timestamp
.map(|ts| div![C!["header"], "Date: ", human_age(ts)]), .map(|ts| div![C!["header"], "Date: ", human_age(ts)]),
IF!(!msg.to.is_empty() => div![C!["header"], "To: ", view_addresses(&msg.to)]), IF!(!msg.to.is_empty() => div![C!["header"], "To: ", view_addresses(&msg.to)]),