[evolution-ews] Fixed an issue where when modifying an appoinment in evolution it becomes a meeting
- From: Shiran Stan-Meleh <sstanmel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-ews] Fixed an issue where when modifying an appoinment in evolution it becomes a meeting
- Date: Thu, 18 Aug 2011 11:41:36 +0000 (UTC)
commit 9a75ae63df9e3b26e726ddc19172c0c6a29f5399
Author: Shiran Stan-Meleh <shiran stan-meleh intel com>
Date: Thu Aug 18 14:39:57 2011 +0300
Fixed an issue where when modifying an appoinment in evolution it becomes a meeting
src/calendar/e-cal-backend-ews.c | 19 +++++++++++++++++--
1 files changed, 17 insertions(+), 2 deletions(-)
---
diff --git a/src/calendar/e-cal-backend-ews.c b/src/calendar/e-cal-backend-ews.c
index 8ae9bc4..d3782bf 100644
--- a/src/calendar/e-cal-backend-ews.c
+++ b/src/calendar/e-cal-backend-ews.c
@@ -1303,6 +1303,7 @@ ews_create_attachments_cb(GObject *object, GAsyncResult *res, gpointer user_data
}
e_data_cal_notify_object_created (create_data->cal, create_data->context, error, comp_uid, e_cal_component_get_as_string(create_data->comp));
} else if (create_data->cb_type == 2) {
+ const char *send_meeting_invitations;
EwsModifyData* modify_data;
modify_data = g_new0 (EwsModifyData, 1);
modify_data->cbews = g_object_ref (create_data->cbews);
@@ -1312,10 +1313,17 @@ ews_create_attachments_cb(GObject *object, GAsyncResult *res, gpointer user_data
modify_data->context = create_data->context;
modify_data->itemid = create_data->itemid;
modify_data->changekey = create_data->changekey;
+
+ if (e_cal_component_has_attendees (create_data->comp))
+ send_meeting_invitations = "SendToAllAndSaveCopy";
+ else
+ /*In case of appointment we have to set SendMeetingInvites to SendToNone */
+ send_meeting_invitations = "SendToNone";
+
e_ews_connection_update_items_start (priv->cnc, EWS_PRIORITY_MEDIUM,
"AlwaysOverwrite",
"SendAndSaveCopy",
- "SendToAllAndSaveCopy",
+ send_meeting_invitations,
priv->folder_id,
convert_component_to_updatexml,
modify_data,
@@ -2080,6 +2088,7 @@ e_cal_backend_ews_modify_object (ECalBackend *backend, EDataCal *cal, EServerMet
g_free (item_id);
} else {
+ const char *send_meeting_invitations;
modify_data = g_new0 (EwsModifyData, 1);
modify_data->cbews = g_object_ref (cbews);
modify_data->comp = g_object_ref (comp);
@@ -2088,11 +2097,17 @@ e_cal_backend_ews_modify_object (ECalBackend *backend, EDataCal *cal, EServerMet
modify_data->context = context;
modify_data->itemid = itemid;
modify_data->changekey = changekey;
+
+ if (e_cal_component_has_attendees (comp))
+ send_meeting_invitations = "SendToAllAndSaveCopy";
+ else
+ /*In case of appointment we have to set SendMeetingInvites to SendToNone */
+ send_meeting_invitations = "SendToNone";
e_ews_connection_update_items_start (priv->cnc, EWS_PRIORITY_MEDIUM,
"AlwaysOverwrite",
"SendAndSaveCopy",
- "SendToAllAndSaveCopy",
+ send_meeting_invitations,
priv->folder_id,
convert_component_to_updatexml,
modify_data,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]