Add filtering of CalDAV query results

Currently, `QueryCalendarObjects()` simply returns all objects. Now that
`caldav.Filter()` is available upstream, use it to actually filter out
events that do not match the query.
This commit is contained in:
Conrad Hoffmann 2022-06-03 09:45:27 +02:00
parent 04a422523a
commit 486a5285db

View File

@ -582,9 +582,7 @@ func (b *filesystemBackend) QueryCalendarObjects(ctx context.Context, query *cal
return result, err
}
return result, nil
// TODO implement:
//return caldav.Filter(query, result)
return caldav.Filter(query, result)
}
func (b *filesystemBackend) PutCalendarObject(ctx context.Context, objPath string, calendar *ical.Calendar, opts *caldav.PutCalendarObjectOptions) (loc string, err error) {