Skip to content

Conversation

@SebastianKrupinski
Copy link
Contributor

Summary

When message is a reply compare the message sender not the recipient.

@solracsf solracsf changed the title fix: for issue #43115 fix(caldav): When message is a reply compare the message sender not the recipient Apr 17, 2024
@susnux susnux added this to the Nextcloud 30 milestone Apr 18, 2024
Copy link
Member

@ChristophWurst ChristophWurst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested & works

Could you please extend \OCA\DAV\Tests\unit\CalDAV\Schedule\IMipPluginTest for three tests that cover the three possible paths of \OCA\DAV\CalDAV\Schedule\IMipService::getCurrentAttendee? 1. Reply, 2. invite, 3. no match.

Comment on lines 575 to 576
}
elseif (strcasecmp($attendee->getValue(), $iTipMessage->recipient) === 0) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
}
elseif (strcasecmp($attendee->getValue(), $iTipMessage->recipient) === 0) {
} elseif (strcasecmp($attendee->getValue(), $iTipMessage->recipient) === 0) {

@ChristophWurst
Copy link
Member

/backport to stable29

@ChristophWurst
Copy link
Member

/backport to stable28

@ChristophWurst
Copy link
Member

ChristophWurst commented Apr 23, 2024

Could you please extend \OCA\DAV\Tests\unit\CalDAV\Schedule\IMipPluginTest for three tests that cover the three possible paths of \OCA\DAV\CalDAV\Schedule\IMipService::getCurrentAttendee? 1. Reply, 2. invite, 3. no match.

I'm sorry, I mixed up the classes. We want to unit test \OCA\DAV\CalDAV\Schedule\IMipService::getCurrentAttendee so the tests will go into \OCA\DAV\Tests\unit\CalDAV\Schedule\IMipServiceTest

Move the tests please

@kesselb
Copy link
Contributor

kesselb commented Jun 25, 2024

/backport to stable27

…he recipient

Signed-off-by: SebastianKrupinski <[email protected]>
Signed-off-by: Daniel Kesselberg <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews bug

Projects

Development

Successfully merging this pull request may close these issues.

[Bug]: Nextcloud 28 don't send notification when accept a meeting

6 participants