diff options
author | Anna Larch <anna@nextcloud.com> | 2023-12-15 14:51:01 +0100 |
---|---|---|
committer | Anna Larch <anna@nextcloud.com> | 2023-12-19 14:59:00 +0100 |
commit | 4c6eff975f1ea07e0250d0eff921b5ee54eeab3b (patch) | |
tree | da53d6b2fc6ce2818276d60b176fb18147c11d00 /apps/user_status/lib/Controller | |
parent | 2f647aacc50f949eccbaaa49a30698776e8205bb (diff) | |
download | nextcloud-server-4c6eff975f1ea07e0250d0eff921b5ee54eeab3b.tar.gz nextcloud-server-4c6eff975f1ea07e0250d0eff921b5ee54eeab3b.zip |
fix(userstatus): set user status to 'In a meeting' if calendar is busy
Signed-off-by: Anna Larch <anna@nextcloud.com>
Diffstat (limited to 'apps/user_status/lib/Controller')
-rw-r--r-- | apps/user_status/lib/Controller/UserStatusController.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/user_status/lib/Controller/UserStatusController.php b/apps/user_status/lib/Controller/UserStatusController.php index f2b1537e4f7..3beb8abc3ab 100644 --- a/apps/user_status/lib/Controller/UserStatusController.php +++ b/apps/user_status/lib/Controller/UserStatusController.php @@ -28,6 +28,7 @@ declare(strict_types=1); */ namespace OCA\UserStatus\Controller; +use OCA\DAV\CalDAV\Status\StatusService as CalendarStatusService; use OCA\UserStatus\Db\UserStatus; use OCA\UserStatus\Exception\InvalidClearAtException; use OCA\UserStatus\Exception\InvalidMessageIdException; @@ -55,6 +56,7 @@ class UserStatusController extends OCSController { private string $userId, private LoggerInterface $logger, private StatusService $service, + private CalendarStatusService $calendarStatusService, ) { parent::__construct($appName, $request); } @@ -71,6 +73,7 @@ class UserStatusController extends OCSController { */ public function getStatus(): DataResponse { try { + $this->calendarStatusService->processCalendarStatus($this->userId); $userStatus = $this->service->findByUserId($this->userId); } catch (DoesNotExistException $ex) { throw new OCSNotFoundException('No status for the current user'); |