Add a Jitsi video conference to events on Core calendars
The event editor offers "Add Video Conference" on the calendars of a Federated Computer Core. It makes a room with an unguessable name, like BraveOttersSing-k3f9x2m7, on the Core's Jitsi at jitsi.<CORE_DOMAIN>, and shows its link with Copy and Remove buttons. The link goes at the end of the event's notes, which reach everyone invited whatever their mail app, and in an RFC 7986 CONFERENCE property. Saving puts the link back in the notes if it was taken out, and "All events" copies the conference to the whole series. Existing conferences are found in CONFERENCE, or as Jitsi links in the notes or location, so the editor doesn't offer a second one and the popover shows a Join button. The popover now keeps showing a place in the location alongside a meeting. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -164,6 +164,10 @@ date_time_from_icaltime (void)
|
||||
"Pour les organisateurs : Options de réunion<https://teams.microsoft.com/meetingOptions/?organizerId=690add55-d0e3-4605-ac28-a3a08193c212&tenantId=43743467-968a-4ded-8250-afd003a4a407&threadId=19_meeting_Yjk5NTI0M2UtNjA5OC00ZWJhLThhNDgtYmJlYTI2ZTE5YzM0&messageId=100&language=fr-CA>\n" \
|
||||
"________________________________________________________________________________"
|
||||
|
||||
#define JITSI_SAMPLE_DESCRIPTION \
|
||||
"Agenda for the week\n" \
|
||||
"\n" \
|
||||
"Join the video conference: https://jitsi.example.com/BraveOttersSing-k3f9x2m7"
|
||||
|
||||
static void
|
||||
extract_meeting_url (void)
|
||||
@@ -188,6 +192,28 @@ extract_meeting_url (void)
|
||||
gcal_util_extract_meeting_url (TEAMS_SAMPLE_DESCRIPTION, &description, &meeting_url);
|
||||
g_assert_cmpstr (description, ==, "");
|
||||
g_assert_cmpstr (meeting_url, ==, "https://teams.microsoft.com/meet/12345678912345?p=0AbCdEfGjKLm1nOjTj");
|
||||
|
||||
g_clear_pointer (&description, g_free);
|
||||
g_clear_pointer (&meeting_url, g_free);
|
||||
|
||||
/* Jitsi links stay in the description, which has no section to take out */
|
||||
gcal_util_extract_meeting_url (JITSI_SAMPLE_DESCRIPTION, &description, &meeting_url);
|
||||
g_assert_cmpstr (description, ==, JITSI_SAMPLE_DESCRIPTION);
|
||||
g_assert_cmpstr (meeting_url, ==, "https://jitsi.example.com/BraveOttersSing-k3f9x2m7");
|
||||
|
||||
g_clear_pointer (&description, g_free);
|
||||
g_clear_pointer (&meeting_url, g_free);
|
||||
|
||||
gcal_util_extract_meeting_url ("Agenda: https://example.com/agenda", &description, &meeting_url);
|
||||
g_assert_cmpstr (description, ==, "Agenda: https://example.com/agenda");
|
||||
g_assert_null (meeting_url);
|
||||
|
||||
g_clear_pointer (&description, g_free);
|
||||
g_clear_pointer (&meeting_url, g_free);
|
||||
|
||||
gcal_util_extract_meeting_url (NULL, &description, &meeting_url);
|
||||
g_assert_null (description);
|
||||
g_assert_null (meeting_url);
|
||||
}
|
||||
|
||||
/*********************************************************************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user