Make default calendar only contain VEVENTS
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
6cca51c2aa
commit
dc04154544
|
@ -157,7 +157,8 @@ class HookManager {
|
||||||
try {
|
try {
|
||||||
$this->calDav->createCalendar($principal, CalDavBackend::PERSONAL_CALENDAR_URI, [
|
$this->calDav->createCalendar($principal, CalDavBackend::PERSONAL_CALENDAR_URI, [
|
||||||
'{DAV:}displayname' => CalDavBackend::PERSONAL_CALENDAR_NAME,
|
'{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) {
|
} catch (\Exception $ex) {
|
||||||
\OC::$server->getLogger()->logException($ex);
|
\OC::$server->getLogger()->logException($ex);
|
||||||
|
|
|
@ -91,7 +91,8 @@ class HookManagerTest extends TestCase {
|
||||||
'principals/users/newUser',
|
'principals/users/newUser',
|
||||||
'personal', [
|
'personal', [
|
||||||
'{DAV:}displayname' => '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 */
|
/** @var CardDavBackend | \PHPUnit_Framework_MockObject_MockObject $card */
|
||||||
|
@ -177,7 +178,8 @@ class HookManagerTest extends TestCase {
|
||||||
'principals/users/newUser',
|
'principals/users/newUser',
|
||||||
'personal', [
|
'personal', [
|
||||||
'{DAV:}displayname' => '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 */
|
/** @var CardDavBackend | \PHPUnit_Framework_MockObject_MockObject $card */
|
||||||
|
|
Loading…
Reference in New Issue