Fix CalDAV/CardDAV: Calendar events, contacts, calendars and address books deleted via JMAP do not write a vanished tombstone

This commit is contained in:
Maurus Decimus
2026-06-06 11:51:47 +02:00
parent bdd7f74ebd
commit 6f614b7904
6 changed files with 34 additions and 4 deletions

View File

@@ -161,6 +161,21 @@ impl DavResources {
}
}
pub fn format_resource_paths_by_id(
&self,
document_id: u32,
) -> impl Iterator<Item = String> + '_ {
self.paths
.iter()
.filter(move |path| self.resources[path.resource_idx].document_id == document_id)
.map(move |path| {
self.format_resource(DavResourcePath {
path,
resource: &self.resources[path.resource_idx],
})
})
}
pub fn format_collection(&self, name: &str) -> String {
format!("{}{name}/", self.base_path)
}