Use last change id for WebDAV CTag

This commit is contained in:
mdecimus 2025-05-31 10:01:10 +02:00
parent d9e5838081
commit b3bb2bffb8

View file

@ -934,9 +934,15 @@ impl PropFindRequestHandler for Server {
}
WebDavProperty::GetCTag => {
if item.is_container {
let ctag = data
.resources(self, access_token, account_id, sync_collection)
.await
.caused_by(trc::location!())?
.highest_change_id;
fields.push(DavPropertyValue::new(
property.clone(),
DavValue::String(archive_.ctag()),
DavValue::String(format!("\"{ctag}\"")),
));
} else {
fields_not_found.push(DavPropertyValue::empty(property.clone()));