rewrite combined calendar store in preparation for sharing

This commit is contained in:
Lennart
2025-09-02 23:30:16 +02:00
parent 7d961ea93b
commit 0eb8359e26
3 changed files with 163 additions and 233 deletions

View File

@@ -40,10 +40,9 @@ pub fn make_app<AS: AddressbookStore, CS: CalendarStore, S: SubscriptionStore>(
dav_push_enabled: bool,
session_cookie_samesite_strict: bool,
) -> Router<()> {
let combined_cal_store = Arc::new(CombinedCalendarStore::new(
cal_store.clone(),
ContactBirthdayStore::new(addr_store.clone()).into(),
));
let birthday_store = Arc::new(ContactBirthdayStore::new(addr_store.clone()));
let combined_cal_store =
Arc::new(CombinedCalendarStore::new(cal_store.clone()).with_store(birthday_store));
let mut router = Router::new()
.merge(caldav_router(