mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-13 21:42:34 +00:00
Fix typo on store preventing us from deleting calendar objects
This commit is contained in:
@@ -80,11 +80,13 @@ impl<CS: CalendarStore, BS: CalendarStore> CalendarStore for CombinedCalendarSto
|
|||||||
use_trashbin: bool,
|
use_trashbin: bool,
|
||||||
) -> Result<(), Error> {
|
) -> Result<(), Error> {
|
||||||
if cal_id.starts_with(BIRTHDAYS_PREFIX) {
|
if cal_id.starts_with(BIRTHDAYS_PREFIX) {
|
||||||
Err(Error::ReadOnly)
|
|
||||||
} else {
|
|
||||||
self.birthday_store
|
self.birthday_store
|
||||||
.delete_object(principal, cal_id, object_id, use_trashbin)
|
.delete_object(principal, cal_id, object_id, use_trashbin)
|
||||||
.await
|
.await
|
||||||
|
} else {
|
||||||
|
self.cal_store
|
||||||
|
.delete_object(principal, cal_id, object_id, use_trashbin)
|
||||||
|
.await
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -237,4 +239,3 @@ impl<CS: CalendarStore, BS: CalendarStore> CalendarStore for CombinedCalendarSto
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user