event-popover: Add support for Teams links
Add a separate function to extract the description and the URL from a Teams-formatted event. Add a test for this as well. Closes: https://gitlab.gnome.org/GNOME/gnome-calendar/-/work_items/1312 Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/753>
This commit is contained in:
committed by
Georges Basile Stavracas Neto
parent
823daa3fb1
commit
ef5935f1fa
@@ -491,9 +491,8 @@ setup_description_label (GcalEventPopover *self)
|
||||
g_autofree gchar *meeting_url = NULL;
|
||||
g_autoptr (GString) string = NULL;
|
||||
|
||||
gcal_utils_extract_google_section (gcal_event_get_description (self->event),
|
||||
&description,
|
||||
&meeting_url);
|
||||
gcal_utils_extract_meeting_url (gcal_event_get_description (self->event), &description, &meeting_url);
|
||||
|
||||
g_strstrip (description);
|
||||
|
||||
if (meeting_url)
|
||||
|
||||
@@ -170,9 +170,7 @@ fill_grid_with_event_data (GcalImportFileRow *self,
|
||||
}
|
||||
}
|
||||
|
||||
gcal_utils_extract_google_section (i_cal_component_get_description (ical_component),
|
||||
&description,
|
||||
NULL);
|
||||
gcal_utils_extract_meeting_url (i_cal_component_get_description (ical_component), &description, NULL);
|
||||
|
||||
add_grid_row (self, grid, row++, _("Title"), i_cal_component_get_summary (ical_component));
|
||||
add_grid_row (self, grid, row++, _("Location"), i_cal_component_get_location (ical_component));
|
||||
|
||||
Reference in New Issue
Block a user