mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-13 22:52:22 +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
|
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(),
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -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(),
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -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(),
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user