XMPPDiscoEntity: Update JID on resource bind
This commit is contained in:
parent
2d96126a44
commit
b7ef74a103
3 changed files with 6 additions and 7 deletions
|
@ -56,7 +56,6 @@
|
|||
* connection.
|
||||
*
|
||||
* \param connection The XMPPConnection to serve responses on.
|
||||
* This must already be bound to a resource)
|
||||
* \return A new autoreleased XMPPDiscoEntity
|
||||
*/
|
||||
+ discoEntityWithConnection: (XMPPConnection*)connection;
|
||||
|
@ -66,7 +65,6 @@
|
|||
* connection.
|
||||
*
|
||||
* \param connection The XMPPConnection to serve responses on.
|
||||
* This must already be bound to a resource)
|
||||
* \param capsNode The node advertised for the entity's capabilites
|
||||
* \return A new autoreleased XMPPDiscoEntity
|
||||
*/
|
||||
|
|
|
@ -107,6 +107,12 @@
|
|||
return [caps SHA1Hash];
|
||||
}
|
||||
|
||||
- (void)connection: (XMPPConnection*)connection
|
||||
wasBoundToJID: (XMPPJID*)JID
|
||||
{
|
||||
_JID = [JID copy];
|
||||
}
|
||||
|
||||
- (BOOL)connection: (XMPPConnection*)connection
|
||||
didReceiveIQ: (XMPPIQ*)IQ
|
||||
{
|
||||
|
|
|
@ -60,11 +60,6 @@
|
|||
self = [super init];
|
||||
|
||||
@try {
|
||||
if (JID == nil)
|
||||
@throw [OFInvalidArgumentException
|
||||
exceptionWithClass: [self class]
|
||||
selector: _cmd];
|
||||
|
||||
_JID = [JID copy];
|
||||
_node= [node copy];
|
||||
_name = [name copy];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue