{"action":"created","issue":{"url":"https://api.github.com/repos/robbiehanson/XMPPFramework/issues/90","repository_url":"https://api.github.com/repos/robbiehanson/XMPPFramework","labels_url":"https://api.github.com/repos/robbiehanson/XMPPFramework/issues/90/labels{/name}","comments_url":"https://api.github.com/repos/robbiehanson/XMPPFramework/issues/90/comments","events_url":"https://api.github.com/repos/robbiehanson/XMPPFramework/issues/90/events","html_url":"https://github.com/robbiehanson/XMPPFramework/issues/90","id":5956655,"number":90,"title":"XEP-0016: Privacy Lists","user":{"login":"elpatxificador","id":2070957,"avatar_url":"https://avatars.githubusercontent.com/u/2070957?v=3","gravatar_id":"","url":"https://api.github.com/users/elpatxificador","html_url":"https://github.com/elpatxificador","followers_url":"https://api.github.com/users/elpatxificador/followers","following_url":"https://api.github.com/users/elpatxificador/following{/other_user}","gists_url":"https://api.github.com/users/elpatxificador/gists{/gist_id}","starred_url":"https://api.github.com/users/elpatxificador/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elpatxificador/subscriptions","organizations_url":"https://api.github.com/users/elpatxificador/orgs","repos_url":"https://api.github.com/users/elpatxificador/repos","events_url":"https://api.github.com/users/elpatxificador/events{/privacy}","received_events_url":"https://api.github.com/users/elpatxificador/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2012-07-31T23:50:19Z","updated_at":"2016-12-09T06:44:28Z","closed_at":"2013-06-02T12:43:24Z","body":"Hello, I want to create a list of blocked users and refuse to communicate with them. I use the XMPP extension XEP-0016 and initialize:\n\n<pre>\n<code>\n- (void)setupXMPPPrivacy\n{\n    NSLog((@\"%s [Line %d] \"), __PRETTY_FUNCTION__, __LINE__);\n    //Init XMPPPrivacy List\n    //xmppPrivacy = [[XMPPPrivacy alloc] init];\n    xmppPrivacy = [[XMPPPrivacy alloc] initWithDispatchQueue:dispatch_get_main_queue()];\n    //Activate xmpp modules\n    [xmppPrivacy activate:xmppStream];\n    //Delegate XMPPPrivacy\n    [xmppPrivacy addDelegate:self delegateQueue:dispatch_get_main_queue()];\n}\n</code>\n</pre>\n\n\nThen attempt to block a user as follows:\n\n<pre>\n<code>\n- (void)privacyBlock\n{\n    XMPPPrivacy *privacy = [[XMPPPrivacy alloc] init];\n    NSXMLElement *privacyElement = [XMPPPrivacy privacyItemWithType:@\"jid\" value:@\"charlie@chat.com\" action:@\"deny\" order:0];\n    [XMPPPrivacy blockIQs:privacyElement];\n    [XMPPPrivacy blockMessages:privacyElement];\n    [XMPPPrivacy blockPresenceIn:privacyElement];\n    [XMPPPrivacy blockPresenceOut:privacyElement]; \n    NSLog(@\"-------> PRIVACY ELEMENT: %@\", privacyElement);\n   \n    NSArray *arrayPrivacy = [[NSArray alloc] initWithObjects:privacyElement, nil];\n    [privacy setListWithName:@\"test\" items:arrayPrivacy];\n}\n</code>\n</pre>\n\n\nDo not get it to work the method setListWithName, when I run this code the application crash. I tried to use the methods: setDefaultListName and setActiveListName but it is the same, although no difference between these methods.\n\nhttps://github.com/robbiehanson/XMPPFramework/blob/master/Extensions/XEP-0016/XMPPPrivacy.m\n\nNot if I have to configure anything else about XMPPPrivacy. I am missing.\n\nThank you very much. Sorry for my English.\n"},"comment":{"url":"https://api.github.com/repos/robbiehanson/XMPPFramework/issues/comments/265945451","html_url":"https://github.com/robbiehanson/XMPPFramework/issues/90#issuecomment-265945451","issue_url":"https://api.github.com/repos/robbiehanson/XMPPFramework/issues/90","id":265945451,"user":{"login":"vishaldeshai","id":6972034,"avatar_url":"https://avatars.githubusercontent.com/u/6972034?v=3","gravatar_id":"","url":"https://api.github.com/users/vishaldeshai","html_url":"https://github.com/vishaldeshai","followers_url":"https://api.github.com/users/vishaldeshai/followers","following_url":"https://api.github.com/users/vishaldeshai/following{/other_user}","gists_url":"https://api.github.com/users/vishaldeshai/gists{/gist_id}","starred_url":"https://api.github.com/users/vishaldeshai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vishaldeshai/subscriptions","organizations_url":"https://api.github.com/users/vishaldeshai/orgs","repos_url":"https://api.github.com/users/vishaldeshai/repos","events_url":"https://api.github.com/users/vishaldeshai/events{/privacy}","received_events_url":"https://api.github.com/users/vishaldeshai/received_events","type":"User","site_admin":false},"created_at":"2016-12-09T06:44:28Z","updated_at":"2016-12-09T06:44:28Z","body":"@arshadkc As per your i have implemented in iOS but after reconnect privacy setting will be reset.\r\n\r\nis there any reason??\r\n\r\nthanks in advance."}}
{"actor":{"display_login":"vishaldeshai"}}