[evolution-ews/gnome-3-30] I#31 - Duplicate attendees in meetings from Office365.com
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-ews/gnome-3-30] I#31 - Duplicate attendees in meetings from Office365.com
- Date: Mon, 21 Jan 2019 17:30:51 +0000 (UTC)
commit 3e4b94df18302c07b9399ab828d96dd38d068642
Author: Milan Crha <mcrha redhat com>
Date: Mon Jan 21 18:29:55 2019 +0100
I#31 - Duplicate attendees in meetings from Office365.com
Closes https://gitlab.gnome.org/GNOME/evolution-ews/issues/31
src/calendar/e-cal-backend-ews.c | 8 ++++++++
1 file changed, 8 insertions(+)
---
diff --git a/src/calendar/e-cal-backend-ews.c b/src/calendar/e-cal-backend-ews.c
index cfd3313a..084e64c8 100644
--- a/src/calendar/e-cal-backend-ews.c
+++ b/src/calendar/e-cal-backend-ews.c
@@ -742,6 +742,14 @@ ecb_ews_item_to_component_sync (ECalBackendEws *cbews,
gboolean is_response_requested = e_ews_item_get_is_response_requested (item);
gchar *user_email;
+ /* Remove any existing attendees first (as Office365.com (and possibly Exchange 2016)
includes them) */
+ for (icalprop = icalcomponent_get_first_property (icalcomp, ICAL_ATTENDEE_PROPERTY);
+ icalprop;
+ icalprop = icalcomponent_get_first_property (icalcomp, ICAL_ATTENDEE_PROPERTY)) {
+ icalcomponent_remove_property (icalcomp, icalprop);
+ icalproperty_free (icalprop);
+ }
+
user_email = camel_ews_settings_dup_email (ews_settings);
/* Attendees */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]