[evolution] ews-I#52 - Disable iTip message send when copy/move meeting between calendars
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] ews-I#52 - Disable iTip message send when copy/move meeting between calendars
- Date: Wed, 16 Oct 2019 15:44:59 +0000 (UTC)
commit 25bf6759cd9f3fc0080f2473dcb46c627db227e0
Author: Milan Crha <mcrha redhat com>
Date: Wed Oct 16 17:43:53 2019 +0200
ews-I#52 - Disable iTip message send when copy/move meeting between calendars
Related to https://gitlab.gnome.org/GNOME/evolution-ews/issues/52
src/calendar/gui/comp-util.c | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/src/calendar/gui/comp-util.c b/src/calendar/gui/comp-util.c
index 3c8c82b8cc..1816c13d51 100644
--- a/src/calendar/gui/comp-util.c
+++ b/src/calendar/gui/comp-util.c
@@ -1190,7 +1190,7 @@ cal_comp_transfer_item_to_sync (ECalClient *src_client,
success = e_cal_client_get_object_sync (dest_client, uid, NULL, &icomp, cancellable,
&local_error);
if (success) {
success = e_cal_client_modify_object_sync (
- dest_client, icomp_event, E_CAL_OBJ_MOD_ALL, E_CAL_OPERATION_FLAG_NONE,
cancellable, error);
+ dest_client, icomp_event, E_CAL_OBJ_MOD_ALL,
E_CAL_OPERATION_FLAG_DISABLE_ITIP_MESSAGE, cancellable, error);
g_clear_object (&icomp);
if (!success)
@@ -1205,7 +1205,7 @@ cal_comp_transfer_item_to_sync (ECalClient *src_client,
mod_type = E_CAL_OBJ_MOD_ALL;
success = e_cal_client_remove_object_sync (
- src_client, uid, NULL, mod_type, E_CAL_OPERATION_FLAG_NONE,
cancellable, error);
+ src_client, uid, NULL, mod_type,
E_CAL_OPERATION_FLAG_DISABLE_ITIP_MESSAGE, cancellable, error);
if (!success)
goto exit;
}
@@ -1301,7 +1301,7 @@ cal_comp_transfer_item_to_sync (ECalClient *src_client,
if (!e_cal_util_component_has_property (subcomp,
I_CAL_RECURRENCEID_PROPERTY)) {
did_add = TRUE;
success = e_cal_client_create_object_sync (
- dest_client, subcomp, E_CAL_OPERATION_FLAG_NONE,
+ dest_client, subcomp,
E_CAL_OPERATION_FLAG_DISABLE_ITIP_MESSAGE,
&new_uid, cancellable, error);
g_free (new_uid);
}
@@ -1322,12 +1322,12 @@ cal_comp_transfer_item_to_sync (ECalClient *src_client,
if (did_add) {
success = e_cal_client_modify_object_sync (
dest_client, subcomp,
- E_CAL_OBJ_MOD_THIS, E_CAL_OPERATION_FLAG_NONE,
cancellable, error);
+ E_CAL_OBJ_MOD_THIS,
E_CAL_OPERATION_FLAG_DISABLE_ITIP_MESSAGE, cancellable, error);
} else {
/* just in case there are only detached instances and no
master object */
did_add = TRUE;
success = e_cal_client_create_object_sync (
- dest_client, subcomp, E_CAL_OPERATION_FLAG_NONE,
+ dest_client, subcomp,
E_CAL_OPERATION_FLAG_DISABLE_ITIP_MESSAGE,
&new_uid, cancellable, error);
g_free (new_uid);
}
@@ -1336,7 +1336,7 @@ cal_comp_transfer_item_to_sync (ECalClient *src_client,
g_clear_object (&subcomp);
} else {
- success = e_cal_client_create_object_sync (dest_client, icomp,
E_CAL_OPERATION_FLAG_NONE, &new_uid, cancellable, error);
+ success = e_cal_client_create_object_sync (dest_client, icomp,
E_CAL_OPERATION_FLAG_DISABLE_ITIP_MESSAGE, &new_uid, cancellable, error);
g_free (new_uid);
}
@@ -1352,7 +1352,7 @@ cal_comp_transfer_item_to_sync (ECalClient *src_client,
e_cal_util_component_has_recurrences (icomp_event))
mod_type = E_CAL_OBJ_MOD_ALL;
- success = e_cal_client_remove_object_sync (src_client, uid, NULL, mod_type,
E_CAL_OPERATION_FLAG_NONE, cancellable, error);
+ success = e_cal_client_remove_object_sync (src_client, uid, NULL, mod_type,
E_CAL_OPERATION_FLAG_DISABLE_ITIP_MESSAGE, cancellable, error);
if (!success)
goto exit;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]