Fix REPORT calendar-data after I stupidly broke it

This commit is contained in:
Lennart
2025-04-27 16:35:46 +02:00
parent 3b58d73b58
commit 2e940bed2f
3 changed files with 9 additions and 18 deletions

View File

@@ -75,12 +75,9 @@ pub async fn handle_calendar_multiget<C: CalendarStore>(
} }
PropfindType::Prop(PropElement(prop_tags)) => prop_tags PropfindType::Prop(PropElement(prop_tags)) => prop_tags
.into_iter() .into_iter()
.filter_map(|propname| { .map(|propname| match propname {
if let ReportPropName::Propname(propname) = propname { ReportPropName::Propname(propname) => propname.0,
Some(propname.0) ReportPropName::CalendarData(_) => "calendar-data".to_owned(),
} else {
None
}
}) })
.collect(), .collect(),
}; };

View File

@@ -234,12 +234,9 @@ pub async fn handle_calendar_query<C: CalendarStore>(
} }
PropfindType::Prop(PropElement(prop_tags)) => prop_tags PropfindType::Prop(PropElement(prop_tags)) => prop_tags
.into_iter() .into_iter()
.filter_map(|propname| { .map(|propname| match propname {
if let ReportPropName::Propname(propname) = propname { ReportPropName::Propname(propname) => propname.0,
Some(propname.0) ReportPropName::CalendarData(_) => "calendar-data".to_owned(),
} else {
None
}
}) })
.collect(), .collect(),
}; };

View File

@@ -34,12 +34,9 @@ pub async fn handle_sync_collection<C: CalendarStore>(
} }
PropfindType::Prop(PropElement(prop_tags)) => prop_tags PropfindType::Prop(PropElement(prop_tags)) => prop_tags
.into_iter() .into_iter()
.filter_map(|propname| { .map(|propname| match propname {
if let ReportPropName::Propname(propname) = propname { ReportPropName::Propname(propname) => propname.0,
Some(propname.0) ReportPropName::CalendarData(_) => "calendar-data".to_owned(),
} else {
None
}
}) })
.collect(), .collect(),
}; };