From f9fab60e5ee77c0cf57744e39b5685902189a38b Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Wed, 29 May 2024 08:47:56 +0200 Subject: test report sync-collection --- aero-collections/src/calendar/mod.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'aero-collections/src') diff --git a/aero-collections/src/calendar/mod.rs b/aero-collections/src/calendar/mod.rs index 414426a..ac07842 100644 --- a/aero-collections/src/calendar/mod.rs +++ b/aero-collections/src/calendar/mod.rs @@ -177,6 +177,10 @@ impl CalendarInternal { .iter() .filter_map(|t: &Token| davstate.change.get(t)) .map(|s| s.clone()) + .filter(|s| match s { + SyncChange::Ok((filename, _)) => davstate.idx_by_filename.get(filename).is_some(), + SyncChange::NotFound(filename) => davstate.idx_by_filename.get(filename).is_none(), + }) .collect(); let token = self.current_token().await?; -- cgit v1.2.3