fix: expand recurring events in CalendarEvent/query (closes #65)
Add expandRecurrences: true to CalendarEvent/query when a date range filter is provided, so the JMAP server returns individual occurrences of recurring events instead of only the master event.
This commit is contained in:
@@ -2919,6 +2919,10 @@ export class JMAPClient {
|
||||
filter,
|
||||
limit: limit || 1000,
|
||||
};
|
||||
// Expand recurring events into individual occurrences when a date range is provided
|
||||
if (filter.after || filter.before) {
|
||||
queryArgs.expandRecurrences = true;
|
||||
}
|
||||
if (sort) {
|
||||
queryArgs.sort = sort;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user