fix(calendar): produce correct JMAP patch when removing recurrence rules
Include recurrenceRules, recurrenceOverrides, and excludedRecurrenceRules in the update patch when clearing recurrence from an event. Also fix "this and future" scope overriding user's recurrence changes. Fixes #14
This commit is contained in:
@@ -349,9 +349,9 @@ export default function CalendarPage() {
|
||||
freeBusyStatus: master.freeBusyStatus,
|
||||
privacy: master.privacy,
|
||||
showWithoutTime: master.showWithoutTime,
|
||||
recurrenceRules: originalRules,
|
||||
...updates,
|
||||
start: updates.start || occurrenceStart,
|
||||
recurrenceRules: originalRules,
|
||||
};
|
||||
delete (newEventData as Record<string, unknown>).id;
|
||||
delete (newEventData as Record<string, unknown>).uid;
|
||||
|
||||
Reference in New Issue
Block a user