[gnome-calendar/gbsneto/recurring-event-editing-fixes: 18/18] core/manager: Remove old hack around recurrences




commit 025fcde2c320f80e84903e56d87d86ab65925170
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Mon Oct 17 16:42:07 2022 -0300

    core/manager: Remove old hack around recurrences
    
    We handle it all before reaching GcalManager now.

 src/core/gcal-manager.c | 9 ---------
 1 file changed, 9 deletions(-)
---
diff --git a/src/core/gcal-manager.c b/src/core/gcal-manager.c
index c123603a..a319649e 100644
--- a/src/core/gcal-manager.c
+++ b/src/core/gcal-manager.c
@@ -1052,15 +1052,6 @@ gcal_manager_update_event (GcalManager           *self,
   calendar = gcal_event_get_calendar (event);
   component = gcal_event_get_component (event);
 
-  /*
-   * HACK: In Evolution Calendar, a NULL 'rid' is usually associated
-   * with an E_CAL_OBJ_MOD_ALL modtype. Here, we are manually setting
-   * the rid to NULL when modifying a recurrent event with MOD_ALL
-   * modtype.
-   */
-  if (mod == GCAL_RECURRENCE_MOD_ALL)
-    e_cal_component_set_recurid (component, NULL);
-
   e_cal_client_modify_object (gcal_calendar_get_client (calendar),
                               e_cal_component_get_icalcomponent (component),
                               (ECalObjModType) mod,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]