{"action":"created","issue":{"url":"https://api.github.com/repos/Alterplay/APAddressBook/issues/46","repository_url":"https://api.github.com/repos/Alterplay/APAddressBook","labels_url":"https://api.github.com/repos/Alterplay/APAddressBook/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/Alterplay/APAddressBook/issues/46/comments","events_url":"https://api.github.com/repos/Alterplay/APAddressBook/issues/46/events","html_url":"https://github.com/Alterplay/APAddressBook/issues/46","id":51465834,"number":46,"title":"Duplicate contacts","user":{"login":"nelsongc","id":3985860,"avatar_url":"https://avatars.githubusercontent.com/u/3985860?v=3","gravatar_id":"","url":"https://api.github.com/users/nelsongc","html_url":"https://github.com/nelsongc","followers_url":"https://api.github.com/users/nelsongc/followers","following_url":"https://api.github.com/users/nelsongc/following{/other_user}","gists_url":"https://api.github.com/users/nelsongc/gists{/gist_id}","starred_url":"https://api.github.com/users/nelsongc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nelsongc/subscriptions","organizations_url":"https://api.github.com/users/nelsongc/orgs","repos_url":"https://api.github.com/users/nelsongc/repos","events_url":"https://api.github.com/users/nelsongc/events{/privacy}","received_events_url":"https://api.github.com/users/nelsongc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2014-12-09T18:48:34Z","updated_at":"2016-06-08T12:34:37Z","closed_at":null,"body":"this is the code:\r\n\r\n@IBOutlet weak var activity: UIActivityIndicatorView!\r\n    \r\n    let addressBook = APAddressBook()\r\n    \r\n    override func viewDidLoad() {\r\n        super.viewDidLoad()\r\n        self.registerCellClass(TableViewCell.self, forModelClass: APContact.self)\r\n        self.addressBook.fieldsMask = APContactField.FirstName | APContactField.LastName | APContactField.Emails\r\n        self.addressBook.sortDescriptors = [NSSortDescriptor(key: \"firstName\", ascending: true),\r\n            NSSortDescriptor(key: \"lastName\", ascending: true)]\r\n        self.addressBook.filterBlock = {(contact: APContact!) -> Bool in\r\n            println(\"\\(contact.firstName), \\(contact.lastName)\")\r\n            return contact.emails != nil && contact.emails.count > 0\r\n        }\r\n        self.addressBook.loadContacts(\r\n            { (contacts: [AnyObject]!, error: NSError!) in\r\n                self.activity.stopAnimating()\r\n                if (contacts != nil) {\r\n                    self.memoryStorage().addItems(contacts)\r\n                }\r\n                else if (error != nil) {\r\n                    let alert = UIAlertView(title: \"Error\", message: error.localizedDescription,\r\n                        delegate: nil, cancelButtonTitle: \"OK\")\r\n                    alert.show()\r\n                }\r\n            })\r\n    }\r\n\r\n\r\n\r\n\r\nthe result is a list with all contacts duplicated, why? do I need something more?"},"comment":{"url":"https://api.github.com/repos/Alterplay/APAddressBook/issues/comments/224575194","html_url":"https://github.com/Alterplay/APAddressBook/issues/46#issuecomment-224575194","issue_url":"https://api.github.com/repos/Alterplay/APAddressBook/issues/46","id":224575194,"user":{"login":"lteti77","id":19799392,"avatar_url":"https://avatars.githubusercontent.com/u/19799392?v=3","gravatar_id":"","url":"https://api.github.com/users/lteti77","html_url":"https://github.com/lteti77","followers_url":"https://api.github.com/users/lteti77/followers","following_url":"https://api.github.com/users/lteti77/following{/other_user}","gists_url":"https://api.github.com/users/lteti77/gists{/gist_id}","starred_url":"https://api.github.com/users/lteti77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lteti77/subscriptions","organizations_url":"https://api.github.com/users/lteti77/orgs","repos_url":"https://api.github.com/users/lteti77/repos","events_url":"https://api.github.com/users/lteti77/events{/privacy}","received_events_url":"https://api.github.com/users/lteti77/received_events","type":"User","site_admin":false},"created_at":"2016-06-08T12:34:37Z","updated_at":"2016-06-08T12:34:37Z","body":"the linked contacts are duplicated. i haven't tested the example app, yet..."}}
{"actor":{"display_login":"lteti77"}}