From 6bc950d042c47982c71ca1f9140ab40d1c727c66 Mon Sep 17 00:00:00 2001 From: fiaxh Date: Mon, 7 Aug 2017 20:13:09 +0200 Subject: Http file upload for version :0 and other server setups --- xmpp-vala/src/module/xep/0030_service_discovery/items_result.vala | 2 +- xmpp-vala/src/module/xep/0030_service_discovery/module.vala | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'xmpp-vala/src') diff --git a/xmpp-vala/src/module/xep/0030_service_discovery/items_result.vala b/xmpp-vala/src/module/xep/0030_service_discovery/items_result.vala index 2979f108..52de5efc 100644 --- a/xmpp-vala/src/module/xep/0030_service_discovery/items_result.vala +++ b/xmpp-vala/src/module/xep/0030_service_discovery/items_result.vala @@ -10,7 +10,7 @@ public class ItemsResult { public ArrayList items { owned get { ArrayList ret = new ArrayList(); - foreach (StanzaNode feature_node in iq.stanza.get_subnode("query", NS_URI_ITEMS).get_subnodes("identity", NS_URI_INFO)) { + foreach (StanzaNode feature_node in iq.stanza.get_subnode("query", NS_URI_ITEMS).get_subnodes("item", NS_URI_ITEMS)) { ret.add(new Item(feature_node.get_attribute("jid", NS_URI_ITEMS), feature_node.get_attribute("name", NS_URI_ITEMS), feature_node.get_attribute("node", NS_URI_ITEMS))); diff --git a/xmpp-vala/src/module/xep/0030_service_discovery/module.vala b/xmpp-vala/src/module/xep/0030_service_discovery/module.vala index e09a3b8d..c3e08a60 100644 --- a/xmpp-vala/src/module/xep/0030_service_discovery/module.vala +++ b/xmpp-vala/src/module/xep/0030_service_discovery/module.vala @@ -54,7 +54,6 @@ public class Module : XmppStreamModule, Iq.Handler { public void request_items(XmppStream stream, string jid, owned OnItemsResult listener) { Iq.Stanza iq = new Iq.Stanza.get(new StanzaNode.build("query", NS_URI_ITEMS).add_self_xmlns()); iq.to = jid; - print(iq.stanza.to_string() + "\n"); stream.get_module(Iq.Module.IDENTITY).send_iq(stream, iq, (stream, iq) => { ItemsResult? result = ItemsResult.create_from_iq(iq); stream.get_flag(Flag.IDENTITY).set_entity_items(iq.from, result != null ? result.items : null); -- cgit v1.2.3-70-g09d2