From 91130a5c5fd3088c7e5bddfd6535208e70c53b8d Mon Sep 17 00:00:00 2001 From: Paul Woolcock <11843015+phw198@users.noreply.github.com> Date: Tue, 14 Jan 2025 23:56:38 +0000 Subject: [PATCH] Bugfix: GetCalendarEntry() shouldn't exclude default Event types. --- src/OutlookGoogleCalendarSync/Google/GoogleCalendar.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OutlookGoogleCalendarSync/Google/GoogleCalendar.cs b/src/OutlookGoogleCalendarSync/Google/GoogleCalendar.cs index 19865692..32b26b3d 100644 --- a/src/OutlookGoogleCalendarSync/Google/GoogleCalendar.cs +++ b/src/OutlookGoogleCalendarSync/Google/GoogleCalendar.cs @@ -239,7 +239,7 @@ public Event GetCalendarEntry(String eventId) { try { request = gr.Execute(); EventsResource.ListRequest.EventTypesEnum eventType; - if (Enum.TryParse(request.EventType.Replace("__", ""), true, out eventType)) { + if (Enum.TryParse(request.EventType.Replace("default", "Default__"), true, out eventType)) { if (!permittedEventTypes.Contains(eventType)) { log.Warn($"Non-consumer version of EventType '{request.EventType}' found - excluding."); return null;