Revert "Mail list: show who wrote, not everyone involved"
This reverts commit 550b8cf503.
This commit is contained in:
@@ -119,12 +119,10 @@ export function MessageList({
|
||||
const selected = selectedId === thread.id;
|
||||
const checked = checkedIds.has(thread.id);
|
||||
const dimmed = dimmedIds?.has(thread.id) ?? false;
|
||||
// Senders, not participants: the latter includes recipients, so every
|
||||
// ordinary email read "Sender, You" and the +N badge counted the user.
|
||||
const people = thread.senders.length ? thread.senders : thread.participants;
|
||||
const primary = people[0];
|
||||
const names = people.map((p) => p.name || p.email).join(", ") || "(no one)";
|
||||
const extra = Math.max(0, people.length - 1);
|
||||
const primary = thread.participants[0];
|
||||
const names =
|
||||
thread.participants.map((p) => p.name || p.email).join(", ") || "(no one)";
|
||||
const extra = Math.max(0, thread.participants.length - 1);
|
||||
const avatarBg = `hsl(${hue(primary?.email || primary?.name || "?")} 45% 45%)`;
|
||||
const stop = (fn: () => void) => (e: React.MouseEvent) => {
|
||||
e.stopPropagation();
|
||||
|
||||
Reference in New Issue
Block a user