Make default calendar only contain VEVENTS

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2019-09-15 13:24:09 +02:00
parent 6cca51c2aa
commit dc04154544
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773
2 changed files with 6 additions and 3 deletions

View File

@ -157,7 +157,8 @@ class HookManager {
try {
$this->calDav->createCalendar($principal, CalDavBackend::PERSONAL_CALENDAR_URI, [
'{DAV:}displayname' => CalDavBackend::PERSONAL_CALENDAR_NAME,
'{http://apple.com/ns/ical/}calendar-color' => $this->themingDefaults->getColorPrimary()
'{http://apple.com/ns/ical/}calendar-color' => $this->themingDefaults->getColorPrimary(),
'components' => 'VEVENT'
]);
} catch (\Exception $ex) {
\OC::$server->getLogger()->logException($ex);

View File

@ -91,7 +91,8 @@ class HookManagerTest extends TestCase {
'principals/users/newUser',
'personal', [
'{DAV:}displayname' => 'Personal',
'{http://apple.com/ns/ical/}calendar-color' => '#745bca'
'{http://apple.com/ns/ical/}calendar-color' => '#745bca',
'components' => 'VEVENT'
]);
/** @var CardDavBackend | \PHPUnit_Framework_MockObject_MockObject $card */
@ -177,7 +178,8 @@ class HookManagerTest extends TestCase {
'principals/users/newUser',
'personal', [
'{DAV:}displayname' => 'Personal',
'{http://apple.com/ns/ical/}calendar-color' => '#745bca'
'{http://apple.com/ns/ical/}calendar-color' => '#745bca',
'components' => 'VEVENT'
]);
/** @var CardDavBackend | \PHPUnit_Framework_MockObject_MockObject $card */