* Formats attendees into a comma-separated list of names/emails.
(attendees?: CalendarAttendee[])
| 86 | * Formats attendees into a comma-separated list of names/emails. |
| 87 | */ |
| 88 | function formatAttendees(attendees?: CalendarAttendee[]): string { |
| 89 | if (!attendees || attendees.length === 0) return '' |
| 90 | return attendees |
| 91 | .filter((a) => !a.resource) |
| 92 | .map((a) => a.displayName || a.email || 'Unknown') |
| 93 | .join(', ') |
| 94 | } |
| 95 | |
| 96 | /** |
| 97 | * Formats an organizer into a display string. |