mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-13 22:52:22 +00:00
Add supported-calendar-data prop
This commit is contained in:
@@ -107,6 +107,7 @@ pub fn generate_propfind_calendar_response(
|
|||||||
"current-user-principal",
|
"current-user-principal",
|
||||||
"displayname",
|
"displayname",
|
||||||
"supported-calendar-component-set",
|
"supported-calendar-component-set",
|
||||||
|
"supported-calendar-data",
|
||||||
"getcontenttype",
|
"getcontenttype",
|
||||||
"calendar-description",
|
"calendar-description",
|
||||||
"owner",
|
"owner",
|
||||||
@@ -169,6 +170,21 @@ pub fn generate_propfind_calendar_response(
|
|||||||
Ok(())
|
Ok(())
|
||||||
})?;
|
})?;
|
||||||
}
|
}
|
||||||
|
"supported-calendar-data" => {
|
||||||
|
writer
|
||||||
|
.create_element("C:supported-calendar-data")
|
||||||
|
.write_inner_content(|writer| {
|
||||||
|
// <cal:calendar-data content-type="text/calendar" version="2.0" />
|
||||||
|
writer
|
||||||
|
.create_element("C:calendar-data")
|
||||||
|
.with_attributes(vec![
|
||||||
|
("content-type", "text/calendar"),
|
||||||
|
("version", "2.0"),
|
||||||
|
])
|
||||||
|
.write_empty()?;
|
||||||
|
Ok(())
|
||||||
|
})?;
|
||||||
|
}
|
||||||
"getcontenttype" => {
|
"getcontenttype" => {
|
||||||
writer
|
writer
|
||||||
.create_element("getcontenttype")
|
.create_element("getcontenttype")
|
||||||
|
|||||||
Reference in New Issue
Block a user