diff options
author | fiaxh <git@lightrise.org> | 2020-08-14 16:42:56 +0200 |
---|---|---|
committer | fiaxh <git@lightrise.org> | 2020-08-31 16:48:20 +0200 |
commit | e6a90fc25c19b4cfceff7b1d89c58927753ee98d (patch) | |
tree | ccdf16576088c7734e4ca0ec554a285d3ff0bf7f /xmpp-vala/src/module/xep/0199_ping.vala | |
parent | ff9a9a0d667694cc9254db832655bddfbcabc909 (diff) | |
download | dino-e6a90fc25c19b4cfceff7b1d89c58927753ee98d.tar.gz dino-e6a90fc25c19b4cfceff7b1d89c58927753ee98d.zip |
Implement MUC self ping
Diffstat (limited to 'xmpp-vala/src/module/xep/0199_ping.vala')
-rw-r--r-- | xmpp-vala/src/module/xep/0199_ping.vala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmpp-vala/src/module/xep/0199_ping.vala b/xmpp-vala/src/module/xep/0199_ping.vala index 12997f32..f3e68660 100644 --- a/xmpp-vala/src/module/xep/0199_ping.vala +++ b/xmpp-vala/src/module/xep/0199_ping.vala @@ -6,10 +6,10 @@ namespace Xmpp.Xep.Ping { public class Module : XmppStreamModule, Iq.Handler { public static ModuleIdentity<Module> IDENTITY = new ModuleIdentity<Module>(NS_URI, "0199_ping"); - public async void send_ping(XmppStream stream, Jid jid) { + public async Iq.Stanza send_ping(XmppStream stream, Jid jid) { StanzaNode ping_node = new StanzaNode.build("ping", NS_URI).add_self_xmlns(); Iq.Stanza iq = new Iq.Stanza.get(ping_node) { to=jid }; - yield stream.get_module(Iq.Module.IDENTITY).send_iq_async(stream, iq); + return yield stream.get_module(Iq.Module.IDENTITY).send_iq_async(stream, iq); } public override void attach(XmppStream stream) { |