XMPPDiscoEntity: Update JID on resource bind

This commit is contained in:
Florian Zeitz 2013-06-05 21:01:39 +02:00
parent 2d96126a44
commit b7ef74a103
3 changed files with 6 additions and 7 deletions

View file

@ -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
*/

View file

@ -107,6 +107,12 @@
return [caps SHA1Hash];
}
- (void)connection: (XMPPConnection*)connection
wasBoundToJID: (XMPPJID*)JID
{
_JID = [JID copy];
}
- (BOOL)connection: (XMPPConnection*)connection
didReceiveIQ: (XMPPIQ*)IQ
{

View file

@ -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];