fix: load the calendar range once, not twice, after creating a recurring event

This commit is contained in:
Linus Rath
2026-10-26 12:25:31 +01:00
parent 33c5ca8125
commit cd2bcc0520
-3
View File
@@ -1140,9 +1140,6 @@ export const useCalendarStore = create<CalendarStore>()(
await refetchAfterOccurrenceMutation();
}
void calendarHooks.onAfterEventCreate.emit(eventToView(mappedCreated));
if (mappedCreated.recurrenceRules && mappedCreated.recurrenceRules.length > 0) {
await refetchAfterOccurrenceMutation();
}
// Invitation emails are sent by the server: `sendSchedulingMessages`
// on CalendarEvent/set makes Stalwart queue the iTIP REQUEST itself.
// Sending a client-side iMIP copy here produced duplicate emails.