fix: send calendar invites by setting organizerCalendarAddress

This commit is contained in:
Linus Rath
2026-06-28 20:27:23 +02:00
parent f90cd6abc4
commit e0747c12ee
+5
View File
@@ -523,9 +523,14 @@ export function EventModal({
effectiveAttendees effectiveAttendees
) as Record<string, CalendarParticipant>; ) as Record<string, CalendarParticipant>;
data.replyTo = { imip: `mailto:${organizerEmail}` }; data.replyTo = { imip: `mailto:${organizerEmail}` };
// Stalwart (calcard) derives the iCalendar ORGANIZER property solely from
// organizerCalendarAddress; without it no ORGANIZER is emitted and iTIP
// scheduling is silently skipped (NoSchedulingInfo), so no invites are sent.
data.organizerCalendarAddress = `mailto:${organizerEmail}`;
} else if (effectiveAttendees.length === 0 && event?.participants) { } else if (effectiveAttendees.length === 0 && event?.participants) {
data.participants = null; data.participants = null;
data.replyTo = null; data.replyTo = null;
data.organizerCalendarAddress = null;
} }
const shouldSendScheduling = effectiveAttendees.length > 0 && sendInvitations; const shouldSendScheduling = effectiveAttendees.length > 0 && sendInvitations;