Removed JID override from connection_bind_reply
authorMikael Hallendal <micke@imendio.com>
Fri, 23 Feb 2007 23:34:47 +0100
changeset 221 e924c37e384b
parent 220 f6b9482ae89e
child 222 ca97251ddee8
Removed JID override from connection_bind_reply The JID is set by the user and used when authenticating or finding the server. It shouldn't include the resource and don't change when authenticating.
loudmouth/lm-connection.c
--- a/loudmouth/lm-connection.c	Fri Feb 23 23:32:42 2007 +0100
+++ b/loudmouth/lm-connection.c	Fri Feb 23 23:34:47 2007 +0100
@@ -824,7 +824,6 @@
 {
 	LmMessage *m;
 	LmMessageNode *session_node;
-	LmMessageNode *jid_node;
 	int result;
 	LmMessageSubType type;
 
@@ -835,14 +834,6 @@
 		return LM_HANDLER_RESULT_REMOVE_MESSAGE;
 	}
 
-	/* Retrieve our official JID, which may have a different resource */
-	jid_node = lm_message_node_find_child (message->node, "jid");
-	if (jid_node) {
-		connection->jid =
-			g_strdup (lm_message_node_get_value (jid_node));
-		g_debug ("%s: using jid '%s'", G_STRFUNC, connection->jid);
-	}
-
 	m = lm_message_new_with_sub_type (NULL,
 		LM_MESSAGE_TYPE_IQ, LM_MESSAGE_SUB_TYPE_SET);