* Collects attendee display names (falling back to email) for tag mapping.
(note: GranolaNoteDetail)
| 179 | * Collects attendee display names (falling back to email) for tag mapping. |
| 180 | */ |
| 181 | function collectAttendees(note: GranolaNoteDetail): string[] { |
| 182 | if (!Array.isArray(note.attendees)) return [] |
| 183 | return note.attendees |
| 184 | .map((a) => a.name?.trim() || a.email?.trim() || '') |
| 185 | .filter((name): name is string => name.length > 0) |
| 186 | } |
| 187 | |
| 188 | /** |
| 189 | * Collects folder names for tag mapping. |