Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [xmppPrivacy retrieveListWithName:@"Block_List"];
- [xmppPrivacy setActiveListName:@"Block_List"];
- NSXMLElement *privacyElement = [XMPPPrivacy privacyItemWithType:@"jid" value:xmpp_jid action:@"deny" order:1];
- [XMPPPrivacy blockIQs:privacyElement];
- [XMPPPrivacy blockMessages:privacyElement];
- [XMPPPrivacy blockPresenceIn:privacyElement];
- [XMPPPrivacy blockPresenceOut:privacyElement];
- NSLog(@"-------> PRIVACY ELEMENT: %@", privacyElement);
- [arrayPrivacy addObject:privacyElement];
- [xmppPrivacy setListWithName:@"Block_List" items:arrayPrivacy];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement