summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/Controller
diff options
context:
space:
mode:
authorAnna Larch <anna@nextcloud.com>2023-11-24 01:49:30 +0100
committerAnna Larch <anna@nextcloud.com>2023-11-28 15:44:23 +0100
commite8481e428a91beaf3dd27dc0ec3a25c4ff98a320 (patch)
treec3e25bf14dda918ab88be1415947c3cc71a3693c /apps/dav/lib/Controller
parente7b1d1f46c576c999ac261b7c48abe1a1a6c9588 (diff)
downloadnextcloud-server-e8481e428a91beaf3dd27dc0ec3a25c4ff98a320.tar.gz
nextcloud-server-e8481e428a91beaf3dd27dc0ec3a25c4ff98a320.zip
[stable28] enh(userstatus): add OOO automation and remove calendar automation
Signed-off-by: Anna Larch <anna@nextcloud.com>
Diffstat (limited to 'apps/dav/lib/Controller')
-rw-r--r--apps/dav/lib/Controller/AvailabilitySettingsController.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/dav/lib/Controller/AvailabilitySettingsController.php b/apps/dav/lib/Controller/AvailabilitySettingsController.php
index 3e10162dd84..daa39df470e 100644
--- a/apps/dav/lib/Controller/AvailabilitySettingsController.php
+++ b/apps/dav/lib/Controller/AvailabilitySettingsController.php
@@ -36,12 +36,14 @@ use OCP\AppFramework\Http\JSONResponse;
use OCP\AppFramework\Http\Response;
use OCP\IRequest;
use OCP\IUserSession;
+use OCP\User\IAvailabilityCoordinator;
class AvailabilitySettingsController extends Controller {
public function __construct(
IRequest $request,
private ?IUserSession $userSession,
private AbsenceService $absenceService,
+ private IAvailabilityCoordinator $coordinator,
) {
parent::__construct(Application::APP_ID, $request);
}
@@ -75,6 +77,7 @@ class AvailabilitySettingsController extends Controller {
$status,
$message,
);
+ $this->coordinator->clearCache($user->getUID());
return new JSONResponse($absence);
}
@@ -89,6 +92,7 @@ class AvailabilitySettingsController extends Controller {
}
$this->absenceService->clearAbsence($user);
+ $this->coordinator->clearCache($user->getUID());
return new JSONResponse([]);
}