[evolution-ews] Calendar: Copy 'X-MICROSOFT-SKYPETEAMSMEETINGURL' into 'URL' property
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-ews] Calendar: Copy 'X-MICROSOFT-SKYPETEAMSMEETINGURL' into 'URL' property
- Date: Thu, 5 Nov 2020 13:22:30 +0000 (UTC)
commit 91fa4bf537042fcbdab39097a23230f5dd9b2404
Author: Milan Crha <mcrha redhat com>
Date: Thu Nov 5 14:20:25 2020 +0100
Calendar: Copy 'X-MICROSOFT-SKYPETEAMSMEETINGURL' into 'URL' property
Let is be a read-only property, to have users a chance to access
the URL easily. It's copied only if the 'URL' does not exist
in the component yet.
src/EWS/calendar/e-cal-backend-ews.c | 14 ++++++++++++++
1 file changed, 14 insertions(+)
---
diff --git a/src/EWS/calendar/e-cal-backend-ews.c b/src/EWS/calendar/e-cal-backend-ews.c
index acb6cd15..4ebda28f 100644
--- a/src/EWS/calendar/e-cal-backend-ews.c
+++ b/src/EWS/calendar/e-cal-backend-ews.c
@@ -949,6 +949,20 @@ ecb_ews_item_to_component_sync (ECalBackendEws *cbews,
}
g_free (xvalue);
+ /* Present the online meeting URL as the 'URL' property, thus it can be found in the UI */
+ xvalue = e_cal_util_component_dup_x_property (icomp, "X-MICROSOFT-SKYPETEAMSMEETINGURL");
+ if (xvalue && *xvalue) {
+ prop = i_cal_component_get_first_property (icomp, I_CAL_URL_PROPERTY);
+ if (prop) {
+ /* Do not overwrite existing property. */
+ g_object_unref (prop);
+ } else {
+ prop = i_cal_property_new_url (xvalue);
+ i_cal_component_take_property (icomp, prop);
+ }
+ }
+ g_free (xvalue);
+
if (e_cal_util_component_has_property (icomp, I_CAL_RECURRENCEID_PROPERTY)) {
/* Exchange sets RRULE even on the children, which is broken */
e_cal_util_component_remove_property_by_kind (icomp, I_CAL_RRULE_PROPERTY, TRUE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]