aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/lib
diff options
context:
space:
mode:
authorSebastianKrupinski <krupinskis05@gmail.com>2024-04-17 10:40:31 -0400
committerSebastianKrupinski <krupinskis05@gmail.com>2024-06-26 17:45:22 -0400
commit77291ce2aec53b77fe067aed6c44242b9b18b8de (patch)
tree9179e6e73070c2086239d964a1646ca051621932 /apps/dav/lib
parentf65d956a7219b30dd16a11682b2d31c430dd8040 (diff)
downloadnextcloud-server-77291ce2aec53b77fe067aed6c44242b9b18b8de.tar.gz
nextcloud-server-77291ce2aec53b77fe067aed6c44242b9b18b8de.zip
fix(caldav): when message is a reply compare the message sender not the recipient
Signed-off-by: SebastianKrupinski <krupinskis05@gmail.com> Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'apps/dav/lib')
-rw-r--r--apps/dav/lib/CalDAV/Schedule/IMipService.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/dav/lib/CalDAV/Schedule/IMipService.php b/apps/dav/lib/CalDAV/Schedule/IMipService.php
index 95c6b5739af..1a99a859279 100644
--- a/apps/dav/lib/CalDAV/Schedule/IMipService.php
+++ b/apps/dav/lib/CalDAV/Schedule/IMipService.php
@@ -569,8 +569,11 @@ class IMipService {
$vevent = $iTipMessage->message->VEVENT;
$attendees = $vevent->select('ATTENDEE');
foreach ($attendees as $attendee) {
- /** @var Property $attendee */
- if (strcasecmp($attendee->getValue(), $iTipMessage->recipient) === 0) {
+ if ($iTipMessage->method === 'REPLY' && strcasecmp($attendee->getValue(), $iTipMessage->sender) === 0) {
+ /** @var Property $attendee */
+ return $attendee;
+ } elseif (strcasecmp($attendee->getValue(), $iTipMessage->recipient) === 0) {
+ /** @var Property $attendee */
return $attendee;
}
}