Skip to content

Commit b837b69

Browse files
committed
Fix for XEP 191: Unblock not handled correctly
Fixes robbiehanson#311
1 parent f8eb4ea commit b837b69

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Extensions/XEP-0191/XMPPBlocking.m

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -518,6 +518,12 @@ - (BOOL)xmppStream:(XMPPStream *)sender didReceiveIQ:(XMPPIQ *)iq
518518
if (block || unblock)
519519
{
520520
NSXMLElement *list = [block elementForName:@"item"];
521+
522+
if (!list)
523+
{
524+
list = [unblock elementForName:@"item"];
525+
}
526+
521527
NSString *itemName = [list attributeStringValueForName:@"jid"];
522528
if (itemName == nil)
523529
{

0 commit comments

Comments
 (0)