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

CardDAV includes contacts which aren't 'real' contacts #5150

Closed
cstrat opened this issue May 3, 2021 · 4 comments · Fixed by #6014
Closed

CardDAV includes contacts which aren't 'real' contacts #5150

cstrat opened this issue May 3, 2021 · 4 comments · Fixed by #6014
Labels
bug carddav CardDAV and CalDAV protocols released

Comments

@cstrat
Copy link

cstrat commented May 3, 2021

This should be a simple fix by filtering, I am surprised it hasn't been raised before.

My iPhone sync's with Monica using CardDAV.
I am seeing names for people I have added - but not created contact cards for.
Example would be the names of children or siblings and parents of friends and associates.

Those names have no data attached, so they shouldn't be fetched by CardDAV for the Sync.

@cstrat
Copy link
Author

cstrat commented May 11, 2021

Does this impact anyone else or just me? Perhaps I've misconfigured something?

I am guessing this is where the issue is - this must just be selecting all contacts in the DB, even those not set as a real contact. Perhaps something is going wrong with what it thinks an active contact is?

/**
* Returns the collection of all active contacts.
*
* @return \Illuminate\Support\Collection
*/
public function getObjects($addressBookId)
{
return Auth::user()->account->contacts($addressBookId)
->active()
->get();
}

@cstrat
Copy link
Author

cstrat commented May 11, 2021

BTW, this may be intentional, however those same "contacts" appear in the search results in the search bar at the top.
For example this "contact" is the partner of a colleague, I don't want them to appear in my search or as a contact in my phone. I only wanted to keep track of my colleagues partners name so I don't forget.

image

@github-actions
Copy link

🎉 This issue has been resolved in version 4.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Copy link

This issue has been automatically locked since there
has not been any recent activity after it was closed.
Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 31, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug carddav CardDAV and CalDAV protocols released
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants