-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(caldav): Create personal event for out-of-office messages #41340
Conversation
You can leave as is except for the PRODID. |
$vCalendar->add($vtimezone); | ||
|
||
/** @psalm-suppress UndefinedMethod */ | ||
$vEvent->DTSTART->setDateTime($start->setTimezone($calendarTimeZone)->setTime(0, 0)); |
Check notice
Code scanning / Psalm
PossiblyNullReference Note
/** @psalm-suppress UndefinedMethod */ | ||
$vEvent->DTSTART->setDateTime($start->setTimezone($calendarTimeZone)->setTime(0, 0)); | ||
/** @psalm-suppress UndefinedMethod */ | ||
$vEvent->DTEND->setDateTime($end->setTimezone($calendarTimeZone)->setTime(0, 0)); |
Check notice
Code scanning / Psalm
PossiblyNullReference Note
Signed-off-by: Christoph Wurst <[email protected]>
86f50b6
to
5b7a547
Compare
@@ -70,8 +71,10 @@ | |||
if ($user->getUID() !== $this->getUserId()) { | |||
throw new InvalidArgumentException("The user doesn't match the user id of this absence! Expected " . $this->getUserId() . ", got " . $user->getUID()); | |||
} | |||
if ($this->getId() === null) { |
Check notice
Code scanning / Psalm
DocblockTypeContradiction Note
@ChristophWurst #42142 made me notice I had never submitted my review. Added two comments directly on commit itself since I can't post it anymore. |
Summary
Create and maintain an event in a user's personal calendar when they configure an out of office message.
TODO
Checklist