Skip to content

Commit dcda05e

Browse files
authored
Merge pull request #4312 from nextcloud/enh/ignore-deleted-calendars
Do not check deleted calendars
2 parents a1cffdc + a7dc629 commit dcda05e

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)