-
Notifications
You must be signed in to change notification settings - Fork 154
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
RHAddressBook::people - Duplicate entries for linked contacts #33
Comments
Sounds like a good addition to have in the framework. As for method names, perhaps:
or
If you have some working code, feel free to post it or chuck it in a pull request. |
I like the second one better :) Was also thinking it would probably be beneficial to be able to unify any array of RHPerson's (for example, returned from peopleOrderedByUsersPreference, etc) Been hacking around with it a little this afternoon, and this is what I came up with. The first part (based on stackoverflow) is quite clean, but I'm not the happiest with my next part for picking the record we want out of the unified set (pretty sure it's overkill and too laggy)
|
Got the same issue, any resolution about this?. |
unify duplicates records if the contact exists in multiple sources, see http://stackoverflow.com/a/11480352/255463 and heardrwt#33.
While playing around with RHAddressBook for an app i'm working on, I noticed that the
people
method in RHAddressBook.m will return duplicates if the contact exists in multiple sources. This seems to be a common issue, related to the underlying API.Googling around, I came across this stackoverflow thread which seems to offer up a decent algorithm for a solution.
I think this would make a good addition to RHAddressBook. Something like this, but probably with better method names..
I'd be happy to look at implementing this and sending a pull request if you'd like. Just let me know how you'd want the methods named, etc.
The text was updated successfully, but these errors were encountered: