From a7dc62937cb57034ed47ade73c6f20f3877f616d Mon Sep 17 00:00:00 2001 From: dartcafe Date: Wed, 24 Sep 2025 17:17:55 +0200 Subject: [PATCH] do not check deleted calendars Signed-off-by: dartcafe --- lib/Service/CalendarService.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Service/CalendarService.php b/lib/Service/CalendarService.php index 3a1a16c056..9bad776092 100644 --- a/lib/Service/CalendarService.php +++ b/lib/Service/CalendarService.php @@ -53,6 +53,9 @@ private function getCalendarsForPrincipal(): void { if (!empty($principalUri)) { $this->calendars = $this->calendarManager->getCalendarsForPrincipal($principalUri); + $this->calendars = array_filter($this->calendars, function ($item) { + return !$item->isDeleted(); + }); } else { $this->calendars = []; }