Browse Source
Merge pull request #55282 from nextcloud/fix/create-room-resource-calendar-sync
fix: create room/resource calendar synchronously
pull/55294/head
Richard Steinmetz
2 weeks ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
9 additions and
2 deletions
-
lib/private/Calendar/ResourcesRoomsUpdater.php
|
|
@ -102,8 +102,15 @@ class ResourcesRoomsUpdater { |
|
|
|
|
|
|
|
$id = $this->addToCache($dbTable, $backendId, $resource); |
|
|
|
$this->addMetadataToCache($dbTableMetadata, $foreignKey, $id, $metadata); |
|
|
|
// we don't create the calendar here, it is created lazily
|
|
|
|
// when an event is actually scheduled with this resource / room
|
|
|
|
|
|
|
|
$principalName = implode('-', [$backendId, $newId]); |
|
|
|
$this->calDavBackend->createCalendar( |
|
|
|
implode('/', [$principalPrefix, $principalName]), |
|
|
|
CalDavBackend::RESOURCE_BOOKING_CALENDAR_URI, |
|
|
|
[ |
|
|
|
'{DAV:}displayname' => CalDavBackend::RESOURCE_BOOKING_CALENDAR_NAME, |
|
|
|
], |
|
|
|
); |
|
|
|
} |
|
|
|
|
|
|
|
foreach ($deletedIds as $deletedId) { |
|
|
|