mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-13 19:22:26 +00:00
Fix REPORT calendar-data after I stupidly broke it
This commit is contained in:
@@ -75,12 +75,9 @@ pub async fn handle_calendar_multiget<C: CalendarStore>(
|
||||
}
|
||||
PropfindType::Prop(PropElement(prop_tags)) => prop_tags
|
||||
.into_iter()
|
||||
.filter_map(|propname| {
|
||||
if let ReportPropName::Propname(propname) = propname {
|
||||
Some(propname.0)
|
||||
} else {
|
||||
None
|
||||
}
|
||||
.map(|propname| match propname {
|
||||
ReportPropName::Propname(propname) => propname.0,
|
||||
ReportPropName::CalendarData(_) => "calendar-data".to_owned(),
|
||||
})
|
||||
.collect(),
|
||||
};
|
||||
|
||||
@@ -234,12 +234,9 @@ pub async fn handle_calendar_query<C: CalendarStore>(
|
||||
}
|
||||
PropfindType::Prop(PropElement(prop_tags)) => prop_tags
|
||||
.into_iter()
|
||||
.filter_map(|propname| {
|
||||
if let ReportPropName::Propname(propname) = propname {
|
||||
Some(propname.0)
|
||||
} else {
|
||||
None
|
||||
}
|
||||
.map(|propname| match propname {
|
||||
ReportPropName::Propname(propname) => propname.0,
|
||||
ReportPropName::CalendarData(_) => "calendar-data".to_owned(),
|
||||
})
|
||||
.collect(),
|
||||
};
|
||||
|
||||
@@ -34,12 +34,9 @@ pub async fn handle_sync_collection<C: CalendarStore>(
|
||||
}
|
||||
PropfindType::Prop(PropElement(prop_tags)) => prop_tags
|
||||
.into_iter()
|
||||
.filter_map(|propname| {
|
||||
if let ReportPropName::Propname(propname) = propname {
|
||||
Some(propname.0)
|
||||
} else {
|
||||
None
|
||||
}
|
||||
.map(|propname| match propname {
|
||||
ReportPropName::Propname(propname) => propname.0,
|
||||
ReportPropName::CalendarData(_) => "calendar-data".to_owned(),
|
||||
})
|
||||
.collect(),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user