Use better names for the default calendars and addressbooks - fixes #23720
This commit is contained in:
parent
3c0a1d4241
commit
353449bff7
|
@ -105,7 +105,8 @@ class HookManager {
|
|||
$calendars = $this->calDav->getCalendarsForUser($principal);
|
||||
if (empty($calendars)) {
|
||||
try {
|
||||
$this->calDav->createCalendar($principal, 'default', []);
|
||||
$this->calDav->createCalendar($principal, 'personal', [
|
||||
'displayname' => 'Personal']);
|
||||
} catch (\Exception $ex) {
|
||||
\OC::$server->getLogger()->logException($ex);
|
||||
}
|
||||
|
@ -113,7 +114,8 @@ class HookManager {
|
|||
$books = $this->cardDav->getAddressBooksForUser($principal);
|
||||
if (empty($books)) {
|
||||
try {
|
||||
$this->cardDav->createAddressBook($principal, 'default', []);
|
||||
$this->cardDav->createAddressBook($principal, 'contacts', [
|
||||
'displayname' => 'Contacts']);
|
||||
} catch (\Exception $ex) {
|
||||
\OC::$server->getLogger()->logException($ex);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue