diff options
author | SebastianKrupinski <krupinskis05@gmail.com> | 2024-04-17 10:40:31 -0400 |
---|---|---|
committer | SebastianKrupinski <krupinskis05@gmail.com> | 2024-06-26 17:45:22 -0400 |
commit | 77291ce2aec53b77fe067aed6c44242b9b18b8de (patch) | |
tree | 9179e6e73070c2086239d964a1646ca051621932 /apps/dav/lib | |
parent | f65d956a7219b30dd16a11682b2d31c430dd8040 (diff) | |
download | nextcloud-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.php | 7 |
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; } } |