diff options
author | Marvin W <git@larma.de> | 2023-01-31 15:13:12 +0100 |
---|---|---|
committer | Marvin W <git@larma.de> | 2023-02-07 10:50:45 +0100 |
commit | d76e12b215eb62e4eda5a0f92fbf5c1bd7c1848e (patch) | |
tree | 8037cd613ccea827d8d1895b82a2c0dd65a75a14 /xmpp-vala/src/module/xep/0313_message_archive_management.vala | |
parent | 18321ed15ce782ff5d1f24de9f2fb459d714d125 (diff) | |
download | dino-d76e12b215eb62e4eda5a0f92fbf5c1bd7c1848e.tar.gz dino-d76e12b215eb62e4eda5a0f92fbf5c1bd7c1848e.zip |
Add priority for and allow cancellation of outgoing stanzas
Diffstat (limited to 'xmpp-vala/src/module/xep/0313_message_archive_management.vala')
-rw-r--r-- | xmpp-vala/src/module/xep/0313_message_archive_management.vala | 4 |
1 files changed, 2 insertions, 2 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 8c1b3fbc..1caa1bc3 100644 --- a/xmpp-vala/src/module/xep/0313_message_archive_management.vala +++ b/xmpp-vala/src/module/xep/0313_message_archive_management.vala @@ -71,7 +71,7 @@ public class Module : XmppStreamModule { return query_node; } - internal async QueryResult query_archive(XmppStream stream, string ns, Jid? mam_server, StanzaNode query_node) { + internal async QueryResult query_archive(XmppStream stream, string ns, Jid? mam_server, StanzaNode query_node, Cancellable? cancellable = null) { var res = new QueryResult(); if (stream.get_flag(Flag.IDENTITY) == null) { res.error = true; return res; } @@ -79,7 +79,7 @@ public class Module : XmppStreamModule { // Build and send query Iq.Stanza iq = new Iq.Stanza.set(query_node) { to=mam_server }; - Iq.Stanza result_iq = yield stream.get_module(Iq.Module.IDENTITY).send_iq_async(stream, iq); + Iq.Stanza result_iq = yield stream.get_module(Iq.Module.IDENTITY).send_iq_async(stream, iq, Priority.LOW, cancellable); // Parse the response IQ into a QueryResult. StanzaNode? fin_node = result_iq.stanza.get_subnode("fin", ns); |