Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ios] Wrap ContactStore.enumateContacts with ContactStoreError #6914

Merged
merged 1 commit into from
May 22, 2024

Conversation

paw-hub
Copy link
Contributor

@paw-hub paw-hub commented May 3, 2024

This is to improve debugging errors with predicates.

Test notes

  • Verify that contact sync and import still works:
    • Import contacts
    • Saving contacts on device
    • Syncing changes made to locally saved contacts (two-way syncing)

@paw-hub paw-hub added the ios issues that concern the ios client but not all clients label May 3, 2024
This is to improve debugging errors with predicates.

Co-authored by: wrd <wrd@tutao.de>
@paw-hub paw-hub force-pushed the enumerate-contacts-wrapper branch from d40148b to c124865 Compare May 3, 2024 14:45
@@ -150,6 +150,16 @@ class IosMobileContactsFacade: MobileContactsFacade {
}
}

private func enumerateContactsInContactStore(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer extension for ContactStore with something like enumerateContactsCatching but that's just a nitpick

@kib42 kib42 added this to the Notifications milestone May 21, 2024
@wrdhub wrdhub added this pull request to the merge queue May 22, 2024
Merged via the queue into master with commit e0f8954 May 22, 2024
3 checks passed
@wrdhub wrdhub deleted the enumerate-contacts-wrapper branch May 22, 2024 08:48
@wec43 wec43 assigned wec43 and unassigned wec43 May 27, 2024
@wec43 wec43 added the state:tested-with-comments Issue has been tested but some issues were found and needs review. label May 27, 2024
@wec43
Copy link
Contributor

wec43 commented May 27, 2024

Sometimes there is a significant delay between I delete a contact on iOS and the contact disappear on the same device, even the deletion was synced to desktop immediately (before it disappeared on iOS). Not sure if it is intended.

@paw-hub
Copy link
Contributor Author

paw-hub commented May 27, 2024

That's a bit interesting!

No, it's definitely not intended, as this commit doesn't actually change any functionality. I wonder if the issue was introduced earlier but never caught?

@wec43
Copy link
Contributor

wec43 commented May 27, 2024

Probably, but I cannot reliably reproduce it. Maybe it is because some network connection problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ios issues that concern the ios client but not all clients state:tested-with-comments Issue has been tested but some issues were found and needs review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants