Add max-resource-size to calendar

This commit is contained in:
Lennart
2023-09-07 21:55:46 +02:00
parent 8ed209e16c
commit 1ef1d9701e

View File

@@ -119,6 +119,7 @@ pub fn generate_propfind_calendar_response(
"calendar-description", "calendar-description",
"owner", "owner",
"calendar-color", "calendar-color",
"max-resource-size",
] ]
.iter(), .iter(),
); );
@@ -197,6 +198,11 @@ pub fn generate_propfind_calendar_response(
.create_element("getcontenttype") .create_element("getcontenttype")
.write_text_content(BytesText::new("text/calendar"))?; .write_text_content(BytesText::new("text/calendar"))?;
} }
"max-resource-size" => {
writer
.create_element("max-resource-size")
.write_text_content(BytesText::new("10000000"))?;
}
"allprops" => {} "allprops" => {}
_ => invalid_props.push(prop), _ => invalid_props.push(prop),
}; };