Add 'from' and 'received at' to the email summary.

Really useful in deciding what to read.
This commit is contained in:
Eli Ribble 2024-08-29 10:47:09 -07:00
parent d71f18cce1
commit 5c293219f3
3 changed files with 18 additions and 3 deletions

View file

@ -48,11 +48,16 @@ class EmailSummary extends React.Component<
this.props.mailbox.id +
"/" +
this.props.emailId;
const stub = this.props.emailStub;
return (
<div className="p-2 border" key={this.props.emailId}>
<a className="btn" href={href}>
{this.props.emailStub != null
? this.props.emailStub.subject
{stub != null
? stub.receivedAt +
" - " +
(stub.from == null ? "?" : stub.from[0].name) +
" - " +
stub.subject
: this.props.emailId}
</a>
</div>