Merge pull request #1332 from matthiasbeyer/libimagcontact/all-contacts

Implement ContactStore::all_contacts()
This commit is contained in:
Matthias Beyer 2018-03-12 14:17:54 +01:00 committed by GitHub
commit 252046583a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -109,7 +109,12 @@ impl<'a> ContactStore<'a> for Store {
} }
fn all_contacts(&'a self) -> Result<StoreIdIterator> { fn all_contacts(&'a self) -> Result<StoreIdIterator> {
unimplemented!() let iter = self
.entries()?
.without_store()
.filter(|id| id.is_in_collection(&["contact"]));
Ok(StoreIdIterator::new(Box::new(iter)))
} }
} }