aboutsummaryrefslogtreecommitdiff
path: root/xmpp-vala
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2022-11-04 15:57:58 -0600
committerfiaxh <git@lightrise.org>2022-11-04 15:57:58 -0600
commit7a19a25156a73e7e6b6d77fabc7621e7d2c443f0 (patch)
tree44c9d9ba95afda5b2a49a9f4d347e4641f2f5773 /xmpp-vala
parente62955d3cf266a7f7ff0f2085a64f1c99021127c (diff)
downloaddino-7a19a25156a73e7e6b6d77fabc7621e7d2c443f0.tar.gz
dino-7a19a25156a73e7e6b6d77fabc7621e7d2c443f0.zip
Clean up log outputs
Diffstat (limited to 'xmpp-vala')
-rw-r--r--xmpp-vala/src/module/xep/0313_message_archive_management.vala9
1 files changed, 3 insertions, 6 deletions
diff --git a/xmpp-vala/src/module/xep/0313_message_archive_management.vala b/xmpp-vala/src/module/xep/0313_message_archive_management.vala
index 36a43ac9..8c1b3fbc 100644
--- a/xmpp-vala/src/module/xep/0313_message_archive_management.vala
+++ b/xmpp-vala/src/module/xep/0313_message_archive_management.vala
@@ -79,21 +79,18 @@ public class Module : XmppStreamModule {
// Build and send query
Iq.Stanza iq = new Iq.Stanza.set(query_node) { to=mam_server };
- print(@"OUT:\n$(iq.stanza.to_string())\n");
Iq.Stanza result_iq = yield stream.get_module(Iq.Module.IDENTITY).send_iq_async(stream, iq);
- print(result_iq.stanza.to_string() + "\n");
-
// Parse the response IQ into a QueryResult.
StanzaNode? fin_node = result_iq.stanza.get_subnode("fin", ns);
- if (fin_node == null) { print(@"$ns a1\n"); res.malformed = true; return res; }
+ if (fin_node == null) { res.malformed = true; return res; }
StanzaNode? rsm_node = fin_node.get_subnode("set", Xmpp.ResultSetManagement.NS_URI);
- if (rsm_node == null) { print("a2\n"); res.malformed = true; return res; }
+ if (rsm_node == null) { res.malformed = true; return res; }
res.first = rsm_node.get_deep_string_content("first");
res.last = rsm_node.get_deep_string_content("last");
- if ((res.first == null) != (res.last == null)) { print("a3\n"); res.malformed = true; }
+ if ((res.first == null) != (res.last == null)) { res.malformed = true; return res; }
res.complete = fin_node.get_attribute_bool("complete", false, ns);
return res;