recurrence rules: We can now just not return a last occurence instead of throwing an error

This commit is contained in:
Lennart
2024-10-26 21:25:20 +02:00
parent 03ce10b6dd
commit c4f68e2cf1

View File

@@ -2,7 +2,6 @@ use crate::{
timestamp::{parse_duration, CalDateTime},
Error,
};
use anyhow::{anyhow, Result};
use chrono::Duration;
use ical::{
generator::IcalEvent,
@@ -31,7 +30,7 @@ impl EventObject {
// This is safe since we enforce the event's existence in the constructor
if self.event.get_property("RRULE").is_some() {
// TODO: understand recurrence rules
return Err(anyhow!("event is recurring, we cannot handle that yet").into());
return Ok(None);
}
if let Some(dtend) = self.event.get_property("DTEND") {