Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ObjColumnist committed May 3, 2013
2 parents f9567be + ddbf12b commit 8d4e45f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Extensions/XEP-0045/XMPPMUC.h
Expand Up @@ -56,7 +56,7 @@
@protocol XMPPMUCDelegate
@optional

- (void)xmppMUC:(XMPPMUC *)sender didReceiveRoomInvitation:(XMPPMessage *)message;
- (void)xmppMUC:(XMPPMUC *)sender didReceiveRoomInvitationDecline:(XMPPMessage *)message;
- (void)xmppMUC:(XMPPMUC *)sender roomJID:(XMPPJID *) roomJID didReceiveInvitation:(XMPPMessage *)message;
- (void)xmppMUC:(XMPPMUC *)sender roomJID:(XMPPJID *) roomJID didReceiveInvitationDecline:(XMPPMessage *)message;

@end
6 changes: 4 additions & 2 deletions Extensions/XEP-0045/XMPPMUC.m
Expand Up @@ -169,14 +169,16 @@ - (void)xmppStream:(XMPPStream *)sender didReceiveMessage:(XMPPMessage *)message
NSXMLElement * decline = [x elementForName:@"decline"];

NSXMLElement * directInvite = [message elementForName:@"x" xmlns:@"jabber:x:conference"];

XMPPJID * roomJID = [message from];

if (invite || directInvite)
{
[multicastDelegate xmppMUC:self didReceiveRoomInvitation:message];
[multicastDelegate xmppMUC:self roomJID:roomJID didReceiveInvitation:message];
}
else if (decline)
{
[multicastDelegate xmppMUC:self didReceiveRoomInvitationDecline:message];
[multicastDelegate xmppMUC:self roomJID:roomJID didReceiveInvitationDecline:message];
}
}

Expand Down

0 comments on commit 8d4e45f

Please sign in to comment.