From 946b2798da4c5cae68fe77c7e13d26776e0788ef Mon Sep 17 00:00:00 2001 From: Richard Steinmetz Date: Sat, 11 Jan 2025 14:23:56 +0100 Subject: [PATCH] fixup! feat(ocp): add calendar api to retrieve availability of attendees --- lib/public/Calendar/IManager.php | 4 ++-- tests/lib/Calendar/ManagerTest.php | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/public/Calendar/IManager.php b/lib/public/Calendar/IManager.php index 138dc60e78eda..124dc65f5f6af 100644 --- a/lib/public/Calendar/IManager.php +++ b/lib/public/Calendar/IManager.php @@ -170,13 +170,13 @@ public function handleIMipCancel(string $principalUri, string $sender, ?string $ public function createEventBuilder(): ICalendarEventBuilder; /** - * Check the availability of the given attendees in the given time range. + * Check the availability of the given organizer and attendees in the given time range. * * @since 31.0.0 * * @param IUser $organizer The organizing user from whose perspective to do the availability check. * @param string[] $attendees Email addresses of attendees to check for (with or without a "mailto:" prefix). Only users on this instance can be checked. The rest will be silently ignored. - * @return IAvailabilityResult[] Availabilities of all attendees which are also users on this instance. As such, the array might not contain an entry for each given attendee. + * @return IAvailabilityResult[] Availabilities of the organizer and all attendees which are also users on this instance. As such, the array might not contain an entry for each given attendee. */ public function checkAvailability( DateTimeInterface $start, diff --git a/tests/lib/Calendar/ManagerTest.php b/tests/lib/Calendar/ManagerTest.php index 12440bf7b4993..6c01cd908110a 100644 --- a/tests/lib/Calendar/ManagerTest.php +++ b/tests/lib/Calendar/ManagerTest.php @@ -27,7 +27,6 @@ use Sabre\HTTP\RequestInterface; use Sabre\HTTP\ResponseInterface; use Sabre\VObject\Component\VCalendar; -use Sabre\VObject\Component\VFreeBusy; use Sabre\VObject\Document; use Sabre\VObject\Reader; use Test\TestCase;