aboutsummaryrefslogtreecommitdiff
path: root/xmpp-vala
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2021-04-11 14:33:51 +0200
committerfiaxh <git@lightrise.org>2021-04-11 15:09:28 +0200
commit369755781e4d4fae2f6d790b93ba824e7e049c33 (patch)
tree8bcff68df8b4644f39c4cecd5e143d9eea9bf550 /xmpp-vala
parent0707fd9ac466aa5280565f5ba9ced261d725ca42 (diff)
downloaddino-369755781e4d4fae2f6d790b93ba824e7e049c33.tar.gz
dino-369755781e4d4fae2f6d790b93ba824e7e049c33.zip
Send JMI retract
Diffstat (limited to 'xmpp-vala')
-rw-r--r--xmpp-vala/src/module/xep/0353_jingle_message_initiation.vala8
1 files changed, 8 insertions, 0 deletions
diff --git a/xmpp-vala/src/module/xep/0353_jingle_message_initiation.vala b/xmpp-vala/src/module/xep/0353_jingle_message_initiation.vala
index dbb6fd81..08e803a2 100644
--- a/xmpp-vala/src/module/xep/0353_jingle_message_initiation.vala
+++ b/xmpp-vala/src/module/xep/0353_jingle_message_initiation.vala
@@ -22,6 +22,14 @@ namespace Xmpp.Xep.JingleMessageInitiation {
stream.get_module(MessageModule.IDENTITY).send_message.begin(stream, accepted_message);
}
+ public void send_session_retract_to_peer(XmppStream stream, Jid to, string sid) {
+ MessageStanza retract_message = new MessageStanza() { to=to };
+ retract_message.stanza.put_node(
+ new StanzaNode.build("retract", NS_URI).add_self_xmlns()
+ .put_attribute("id", sid, NS_URI));
+ stream.get_module(MessageModule.IDENTITY).send_message.begin(stream, retract_message);
+ }
+
public void send_session_accept_to_self(XmppStream stream, string sid) {
MessageStanza accepted_message = new MessageStanza() { to=Bind.Flag.get_my_jid(stream).bare_jid };
accepted_message.stanza.put_node(