Skip to content

Commit e5d557d

Browse files
KristofferFMkristoffermollerhoj
authored andcommitted
Issue 719: Make it possible to create iTip messages for attendee on first upload.
As this issue has been fixed by someone else, only the test is remaining in this commit.
1 parent 2f4bd8e commit e5d557d

File tree

1 file changed

+9
-13
lines changed

1 file changed

+9
-13
lines changed

tests/VObject/ITip/BrokerAttendeeReplyTest.php

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,15 @@ class BrokerAttendeeReplyTest extends BrokerTester
66
{
77
public function testAccepted(): void
88
{
9-
$oldMessage = <<<ICS
10-
BEGIN:VCALENDAR
11-
VERSION:2.0
12-
BEGIN:VEVENT
13-
UID:foobar
14-
SUMMARY:B-day party
15-
SEQUENCE:1
16-
ORGANIZER;CN=Strunk:mailto:strunk@example.org
17-
ATTENDEE;CN=One:mailto:one@example.org
18-
DTSTART:20140716T120000Z
19-
END:VEVENT
20-
END:VCALENDAR
21-
ICS;
9+
// If $oldMessage is not set, in some cases an iTip message
10+
// still needs to be generated; this happens when partstat
11+
// differs from NEEDS-ACTION. For example, this is relevant in
12+
// cases where a CalDAV client has received a calendar invite
13+
// in some way, and the user of the client accepts
14+
// participation before the upload. Also see
15+
// https://github.com/sabre-io/vobject/issues/719
16+
17+
$oldMessage = '';
2218

2319
$newMessage = <<<ICS
2420
BEGIN:VCALENDAR

0 commit comments

Comments
 (0)