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>
3.5 KiB
3.5 KiB
Plan
Tasks still to do on Federated Calendar. Tick a box when its work lands, and remove a feature's section once all of it has shipped.
Add a Jitsi conference to an event
Let the person editing an event add a Jitsi video conference with one click,
instead of making a room and pasting its link by hand. People invited to the
event get the link in their invitation, and the event popover already shows a
Join button for a URL in the location (set_up_location_label() in
src/gui/gcal-event-popover.c).
Decisions
- Which Jitsi server: the Core's own. Every Federated Core runs Jitsi.
- How we learn the Core's Jitsi address: it's
https://jitsi.<domain>on every Core, derived fromCORE_DOMAIN. No CoreDesktop change needed. - Which calendars get the option: Core calendars only, since the
server is the Core's.
gcal_federated_core_get_organizer()already tells us which calendars are on a Core. Hide the button on others. - Where the link goes: in the description, so it travels with the
invitation to every mail client, and in the iCalendar
CONFERENCEproperty (RFC 7986) for clients that read it. The location stays free for a physical place.
Work
- Room names: generate an unguessable name (e.g. a random word triple
plus a short random suffix) with a function in
src/federated/and a unit test intests/. - Server lookup: a function in
src/federated/gcal-federated-core.cthat returnshttps://jitsi.<CORE_DOMAIN>for a Core calendar, using theCoreConfthatload_core_conf()already reads, with a unit test. - Event editor UI: an "Add Video Conference" button in the event
editor (probably beside the location in
src/gui/event-editor/gcal-summary-section.blp). Once added, show the link with Copy and Remove buttons instead. - Saving: when the event is saved, add the link to the description
and a
CONFERENCEproperty 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
CONFERENCEproperty and puts it in the invitations it sends. It does: theevent.icsattachment has it as we wrote it. But withFEATURE=AUDIO,VIDEOGmail showed "Unable to load event" and no RSVP buttons, and Google Calendar wouldn't import the file. A bareCONFERENCE;VALUE=URI:works, so we write only that. - 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 button finds them (gcal_util_extract_meeting_url()insrc/utils/gcal-utils.conly knows Google Meet and Teams). - Recurring events: check that the link applies to the whole series and to "this and future" edits. "All events" now copies the conference to the series, and the other choices save the edited occurrence with it. Still to try on a Core, including occurrences that were edited on their own before.
- Accessibility and translation: labels and tooltips are translatable and the new widgets are reachable by keyboard and screen reader.
- Docs: describe the feature in
README.md, and add aNEWSentry. - Test by hand on a Core calendar: add a conference, invite someone, and check the invitation email and the Join button both open the room.