Implemented delete_item for remote calendars

This commit is contained in:
daladim 2021-04-17 19:30:52 +02:00
parent 4f68296f93
commit c63f859cbc

View file

@ -145,8 +145,12 @@ impl DavCalendar for RemoteCalendar {
Ok(Some(item)) Ok(Some(item))
} }
async fn delete_item(&mut self, _item_id: &ItemId) -> Result<(), Box<dyn Error>> { async fn delete_item(&mut self, item_id: &ItemId) -> Result<(), Box<dyn Error>> {
log::error!("Not implemented"); reqwest::Client::new()
.delete(item_id.as_url().clone())
.basic_auth(self.resource.username(), Some(self.resource.password()))
.send()
.await?;
Ok(()) Ok(())
} }
} }