-
Notifications
You must be signed in to change notification settings - Fork 509
fix: do not add organizer as attendee and set status #14664
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
Conversation
|
/backport to stable31 |
miaulalala
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can I ask why CONFIRMED? Theoretically, it should be a PARTSTAT NEEDS-ACTION. The STATUS should not be set for the user without their input.
Morning, the status is for the event not for the attendees, "PARTSTAT |
damn, right. Looks good! |
miaulalala
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Static analysis is complaining since the upstream PR is not merged. Please rebase when it's done, then you can merge.
lib/Controller/RoomController.php
Outdated
| $eventBuilder->setOrganizer($user->getEMailAddress(), $user->getDisplayName() ?: $this->userId); | ||
| $eventBuilder->setStartDate($startDate); | ||
| $eventBuilder->setEndDate($endDate); | ||
| $eventBuilder->setStatus('CONFIRMED'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| $eventBuilder->setStatus('CONFIRMED'); | |
| if (method_exists($eventBuilder, 'setStatus')) { | |
| $eventBuilder->setStatus('CONFIRMED'); | |
| } |
if we want to backport
fbbbb41 to
ae9564b
Compare
| $eventBuilder->setOrganizer($user->getEMailAddress(), $user->getDisplayName() ?: $this->userId); | ||
| $eventBuilder->setStartDate($startDate); | ||
| $eventBuilder->setEndDate($endDate); | ||
| $eventBuilder->setStatus(CalendarEventStatus::CONFIRMED); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs to be wrapped with method exists at least on the backport
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I saw your previous comment and was going to ask you why this would be needed since the talk app tracks NC version for version, but then I realized that the apps can be upgraded before the server. 💡
I think wrapping it in the back port would be cleaner, that way the code from this version on will be cleaner. What would you prefer?
Signed-off-by: SebastianKrupinski <[email protected]>
ae9564b to
f7c26ef
Compare
☑️ Resolves
Event status should be set on new events, the organizer should also not be added as a participant.
🏁 Checklist
🏁 Checklist
docs/has been updated or is not required