Fix invitations for Gmail and number their updates properly
package / package (push) Successful in 1m45s
package / package (push) Successful in 1m45s
Gmail showed "Unable to load event", with no Yes / No / Maybe buttons, for invitations to events with a Jitsi conference, and Google Calendar wouldn't import them. The cause was the FEATURE=AUDIO,VIDEO parameter on the CONFERENCE property: a bare CONFERENCE;VALUE=URI:<link> imports, so that's all we write now. The LABEL parameter goes too. The event's setters committed EDS's sequence after every change, so moving an event's time around in the editor raised SEQUENCE each time, and a new event's first invitation could go out at SEQUENCE 7. DTSTAMP was never updated, so two updates with the same SEQUENCE looked alike to the people invited. gcal_event_prepare_to_save(), called by the manager just before creating or updating an event, now starts new events at SEQUENCE 0, raises an updated event's SEQUENCE at most once when its date, time or recurrence changed, and sets DTSTAMP to the time of saving. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -40,12 +40,12 @@ event get the link in their invitation, and the event popover already shows a
|
||||
and a `CONFERENCE` property to the event's iCalendar component, so
|
||||
that it reaches attendees in the invitation. Keep it stable across
|
||||
later edits and updates, and take both out again on Remove.
|
||||
- [ ] Check that Nextcloud keeps the `CONFERENCE` property and puts it in
|
||||
the invitations it sends. Its source says it stores events as they
|
||||
are and attaches the whole event as `event.ics`, but the email body
|
||||
shows only the description (with our link), location and `URL`, not
|
||||
`CONFERENCE`. Still to see on a Core: whether sabre/vobject's iTip
|
||||
broker keeps `CONFERENCE` in that attachment.
|
||||
- [x] Check that Nextcloud keeps the `CONFERENCE` property and puts it in
|
||||
the invitations it sends. It does: the `event.ics` attachment has it
|
||||
as we wrote it. But with `FEATURE=AUDIO,VIDEO` Gmail showed "Unable
|
||||
to load event" and no RSVP buttons, and Google Calendar wouldn't
|
||||
import the file. A bare `CONFERENCE;VALUE=URI:` works, so we write
|
||||
only that.
|
||||
- [x] Reading: detect Jitsi links in existing events (`CONFERENCE`,
|
||||
description and location) so that the editor shows "conference added" rather
|
||||
than offering to add a second one, and so that the popover's Join
|
||||
|
||||
Reference in New Issue
Block a user