[evolution-data-server] ews-I#39 - Let handle recurring task completion by the server
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] ews-I#39 - Let handle recurring task completion by the server
- Date: Mon, 11 Mar 2019 10:43:32 +0000 (UTC)
commit cf2c5e0f02ceaa01a33115164fe7c641b87435b7
Author: Milan Crha <mcrha redhat com>
Date: Mon Mar 11 11:44:20 2019 +0100
ews-I#39 - Let handle recurring task completion by the server
Related to https://gitlab.gnome.org/GNOME/evolution-ews/issues/39
src/calendar/libecal/e-cal-util.c | 3 ++-
src/calendar/libecal/e-cal-util.h | 10 ++++++++++
2 files changed, 12 insertions(+), 1 deletion(-)
---
diff --git a/src/calendar/libecal/e-cal-util.c b/src/calendar/libecal/e-cal-util.c
index 28c8a52a0..71f25fa29 100644
--- a/src/calendar/libecal/e-cal-util.c
+++ b/src/calendar/libecal/e-cal-util.c
@@ -2210,7 +2210,8 @@ e_cal_util_mark_task_complete_sync (icalcomponent *vtodo,
g_return_val_if_fail (icalcomponent_isa (vtodo) == ICAL_VTODO_COMPONENT, FALSE);
g_return_val_if_fail (E_IS_CAL_CLIENT (cal_client), FALSE);
- if (e_cal_util_component_has_recurrences (vtodo)) {
+ if (e_cal_util_component_has_recurrences (vtodo) &&
+ !e_client_check_capability (E_CLIENT (cal_client), CAL_STATIC_CAPABILITY_TASK_HANDLE_RECUR)) {
gboolean is_last = FALSE, change_count = FALSE;
struct icaltimetype new_dtstart = icaltime_null_time (), new_due = icaltime_null_time ();
diff --git a/src/calendar/libecal/e-cal-util.h b/src/calendar/libecal/e-cal-util.h
index 0bbbd1259..ae0609544 100644
--- a/src/calendar/libecal/e-cal-util.h
+++ b/src/calendar/libecal/e-cal-util.h
@@ -257,6 +257,16 @@ gboolean e_cal_util_event_dates_match (icalcomponent *icalcomp1,
**/
#define CAL_STATIC_CAPABILITY_COMPONENT_COLOR "component-color"
+/**
+ * CAL_STATIC_CAPABILITY_TASK_HANDLE_RECUR:
+ *
+ * When the capability is set, the backend handles task recurrence
+ * completion on its own. This does not imply CAL_STATIC_CAPABILITY_TASK_CAN_RECUR.
+ *
+ * Since: 3.34
+ **/
+#define CAL_STATIC_CAPABILITY_TASK_HANDLE_RECUR "task-handle-recur"
+
/* Recurrent events. Management for instances */
icalcomponent * e_cal_util_construct_instance (icalcomponent *icalcomp,
struct icaltimetype rid);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]