[当我从应用程序的参加者中删除用户时,我正在使用.ics文件将日历邀请从我的应用程序发送给Google用户,
但是,被删除的与会者仍在活动中显示给其他用户。
如何使用ICS从活动中删除与会者?
第一个.ics:
BEGIN:VCALENDAR
VERSION:2.0
PRODID:MyDemoApp
METHOD:REQUEST
BEGIN:VEVENT
UID:useremovetest1jdfshsdpfh
SEQUENCE:0
CREATED:20191014T085551Z
DTSTAMP:20191014T085551Z
LAST-MODIFIED:20191014T085551Z
DTSTART:20191014T112347Z
DTEND:20191014T113547Z
SUMMARY:user remove test - 2
LOCATION:@my-dev-env
DESCRIPTION:some dummy desc
ATTENDEE;CUTYPE=INDIVIDUAL;PARTSTAT=NEEDS-ACTION;ROLE=REQ-PARTICIPANT;RSVP=
true:mailto:[email protected]
ATTENDEE;CUTYPE=INDIVIDUAL;PARTSTAT=NEEDS-ACTION;ROLE=REQ-PARTICIPANT;RSVP=
true:mailto:[email protected]
ATTENDEE;CUTYPE=INDIVIDUAL;PARTSTAT=NEEDS-ACTION;ROLE=REQ-PARTICIPANT;RSVP=
true:mailto:[email protected]
ORGANIZER;CN=Invitation - user remove test - 2:[email protected]
END:VEVENT
END:VCALENDAR
。与会者被删除时的.ics:
BEGIN:VCALENDAR
VERSION:2.0
PRODID:MyDemoApp
METHOD:REQUEST
BEGIN:VEVENT
UID:useremovetest1jdfshsdpfh
SEQUENCE:0
CREATED:20191014T085422Z
DTSTAMP:20191014T085422Z
LAST-MODIFIED:20191014T085422Z
DTSTART:20191014T112347Z
DTEND:20191014T113547Z
SUMMARY:user remove test - 2
LOCATION:@my-dev-env
DESCRIPTION:some dummy desc - update
ATTENDEE;ROLE=REQ-PARTICIPANT;RSVP=true;CUTYPE=INDIVIDUAL;PARTSTAT=NEEDS-AC
TION:mailto:[email protected]
ATTENDEE;CUTYPE=INDIVIDUAL;PARTSTAT=NEEDS-ACTION;ROLE=REQ-PARTICIPANT;RSVP=
true:mailto:TION:mailto:[email protected]
ORGANIZER;CN=Invitation - user remove test - 2:[email protected]
END:VEVENT
END:VCALENDAR
[email protected]仍保留在与会者列表中。但是,标题,说明等已成功更新。
看起来您的DTSTAMP和LAST-MODIFIED值“向后”,因为更新后的邀请的时间戳比原始邀请的时间戳早。