[evolution-ews] Re-factoring receive_objects. in case we do not have an item id to accept meeting invites we will us
- From: Pavel Ocheretny <pocheretny src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-ews] Re-factoring receive_objects. in case we do not have an item id to accept meeting invites we will us
- Date: Sun, 31 Jul 2011 16:43:23 +0000 (UTC)
commit 5ecf8bb806caef9114e9ce953616ff8fb900a53f
Author: Pavel Ocheretny <pocheretny src gnome org>
Date: Sun Jul 31 19:44:26 2011 +0300
Re-factoring receive_objects. in case we do not have an item id to accept meeting invites
we will use mime content to create a meeting on Exchange server
src/calendar/e-cal-backend-ews.c | 19 +++++++++----------
1 files changed, 9 insertions(+), 10 deletions(-)
---
diff --git a/src/calendar/e-cal-backend-ews.c b/src/calendar/e-cal-backend-ews.c
index 9ce8210..ca4331f 100644
--- a/src/calendar/e-cal-backend-ews.c
+++ b/src/calendar/e-cal-backend-ews.c
@@ -2156,18 +2156,17 @@ e_cal_backend_ews_receive_objects (ECalBackend *backend, EDataCal *cal, EServerM
accept_data->response_type = response_type;
accept_data->item_id = item_id;
accept_data->change_key = change_key;
- e_ews_connection_create_items (priv->cnc, EWS_PRIORITY_MEDIUM,
- "SendAndSaveCopy", NULL, NULL,
- prepare_accept_item_request,
- accept_data,
- &ids,
- cancellable,
- &error);
- if (error && error->code == EWS_CONNECTION_ERROR_INVALIDIDMALFORMED) {
- g_clear_error (&error);
+ /*in case we do not have item id we will create item with mime content only*/
+ if (item_id == NULL)
e_ews_receive_objects_no_exchange_mail (priv, subcomp, ids, cancellable, error);
- }
+ else
+ e_ews_connection_create_items (priv->cnc, EWS_PRIORITY_MEDIUM,
+ "SendAndSaveCopy",
+ NULL, NULL,
+ prepare_accept_item_request,
+ accept_data,
+ &ids, cancellable, &error);
if (error)
/* The calendar UI doesn't *display* errors unless they have
* the OtherError code */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]