Skip to content

Commit

Permalink
Merge pull request #34378 from nextcloud/add-isDeleted-to-icalendar
Browse files Browse the repository at this point in the history
Add isDeleted to OCP\Calendar\ICalendar
  • Loading branch information
blizzz authored Oct 4, 2022
2 parents b57115d + d084e76 commit 23df942
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
7 changes: 7 additions & 0 deletions apps/dav/lib/CalDAV/CalendarImpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,13 @@ public function getPermissions(): int {
return $result;
}

/**
* @since 26.0.0
*/
public function isDeleted(): bool {
return $this->calendar->isDeleted();
}

/**
* Create a new calendar event for this calendar
* by way of an ICS string
Expand Down
6 changes: 6 additions & 0 deletions lib/public/Calendar/ICalendar.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,10 @@ public function search(string $pattern, array $searchProperties = [], array $opt
* @since 13.0.0
*/
public function getPermissions(): int;

/**
* Whether the calendar is deleted
* @since 26.0.0
*/
public function isDeleted(): bool;
}

0 comments on commit 23df942

Please sign in to comment.