cpw.malu.xmpp.google_ft: 50142c41: don't include the <transport/> element i..

malu at pidgin.im malu at pidgin.im
Wed Sep 29 14:47:36 EDT 2010


----------------------------------------------------------------------
Revision: 50142c4180fdd7b63d77c7ae4671a231c9a582cd
Parent:   e035ee1c2ea7afbf87941fbc23b7217e2cc1a279
Author:   malu at pidgin.im
Date:     09/29/10 14:43:14
Branch:   im.pidgin.cpw.malu.xmpp.google_ft
URL: http://d.pidgin.im/viewmtn/revision/info/50142c4180fdd7b63d77c7ae4671a231c9a582cd

Changelog: 

don't include the <transport/> element in the session accept iq when replying to initiate not including it (the old google jingle protocol), this seems to be the official client does

Changes against parent e035ee1c2ea7afbf87941fbc23b7217e2cc1a279

  patched  libpurple/protocols/jabber/google/google_share.c

-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/google/google_share.c	e52cad47bd08e3894f524b49bee48ae0613ddfad
+++ libpurple/protocols/jabber/google/google_share.c	abe4c9804dca4a6a33672b7a0359af5d1d0383f0
@@ -531,13 +531,11 @@ google_share_init(PurpleXfer *xfer)
 	if (session_data->old_protocol) {
 		JabberIq *iq = jabber_iq_new(session->js, JABBER_IQ_SET);
 		xmlnode *sess = google_session_create_xmlnode(session, "accept");
-		xmlnode *transport = xmlnode_new_child(sess, "transport");
 
 		xmlnode_set_attrib(iq->node, "to", session->remote_jid);
 		xmlnode_set_attrib(iq->node, "from", me);
 		xmlnode_insert_child(iq->node, sess);
 		xmlnode_insert_child(sess, xmlnode_copy(session->description));
-		xmlnode_set_namespace(transport, NS_GOOGLE_TRANSPORT_P2P);
 		jabber_iq_set_callback(iq, google_share_accept_cb, session);
 		jabber_iq_send(iq);
 	} else {


More information about the Commits mailing list