From c5814d60a4b3bb632a5ef50121453f592e9b4bd6 Mon Sep 17 00:00:00 2001 From: Hivert Quentin Date: Wed, 16 Aug 2023 13:14:31 +0200 Subject: [PATCH] fix(calendar): recurrenid wasn't working properly --- SoObjects/Appointments/iCalCalendar+SOGo.m | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/SoObjects/Appointments/iCalCalendar+SOGo.m b/SoObjects/Appointments/iCalCalendar+SOGo.m index a3f4a8070..1b0d493e6 100644 --- a/SoObjects/Appointments/iCalCalendar+SOGo.m +++ b/SoObjects/Appointments/iCalCalendar+SOGo.m @@ -53,12 +53,11 @@ if ([component isRecurrent] || [component recurrenceId]) { // Skip the master event if required - recId = [component recurrenceId]; - count = (recID ? 0 : 1); + count = ([component recurrenceId] ? 0 : 1); while (!occurrence && count < max) { component = [components objectAtIndex: count]; - recSeconds = [recId timeIntervalSince1970]; + recSeconds = [[component recurrenceId] timeIntervalSince1970]; if (recSeconds == seconds) occurrence = component; else