mirror of
https://github.com/stalwartlabs/mail-server.git
synced 2025-09-12 15:04:22 +08:00
Use last change id for WebDAV CTag
This commit is contained in:
parent
d9e5838081
commit
b3bb2bffb8
1 changed files with 7 additions and 1 deletions
|
@ -934,9 +934,15 @@ impl PropFindRequestHandler for Server {
|
||||||
}
|
}
|
||||||
WebDavProperty::GetCTag => {
|
WebDavProperty::GetCTag => {
|
||||||
if item.is_container {
|
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(
|
fields.push(DavPropertyValue::new(
|
||||||
property.clone(),
|
property.clone(),
|
||||||
DavValue::String(archive_.ctag()),
|
DavValue::String(format!("\"{ctag}\"")),
|
||||||
));
|
));
|
||||||
} else {
|
} else {
|
||||||
fields_not_found.push(DavPropertyValue::empty(property.clone()));
|
fields_not_found.push(DavPropertyValue::empty(property.clone()));
|
||||||
|
|
Loading…
Add table
Reference in a new issue