Skip to content

Commit a7dc629

Browse files
committed
do not check deleted calendars
Signed-off-by: dartcafe <github@dartcafe.de>
1 parent a1cffdc commit a7dc629

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lib/Service/CalendarService.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ private function getCalendarsForPrincipal(): void {
5353

5454
if (!empty($principalUri)) {
5555
$this->calendars = $this->calendarManager->getCalendarsForPrincipal($principalUri);
56+
$this->calendars = array_filter($this->calendars, function ($item) {
57+
return !$item->isDeleted();
58+
});
5659
} else {
5760
$this->calendars = [];
5861
}

0 commit comments

Comments
 (0)