From bce19811283ae4aa6f919497579704de32e30877 Mon Sep 17 00:00:00 2001 From: Paul Fariello Date: Thu, 21 Feb 2019 06:44:47 +0140 Subject: Add devicelist subscription --- src/xmpp/omemo.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/xmpp/omemo.c (limited to 'src/xmpp/omemo.c') diff --git a/src/xmpp/omemo.c b/src/xmpp/omemo.c new file mode 100644 index 00000000..42b18c6b --- /dev/null +++ b/src/xmpp/omemo.c @@ -0,0 +1,15 @@ +#include "xmpp/connection.h" +#include "xmpp/iq.h" +#include "xmpp/stanza.h" + +void +omemo_devicelist_publish(void) +{ + xmpp_ctx_t * const ctx = connection_get_ctx(); + char *barejid = xmpp_jid_bare(ctx, session_get_account_name()); + xmpp_stanza_t *iq = stanza_create_omemo_devicelist_subscription(ctx, barejid); + iq_send_stanza(iq); + xmpp_stanza_release(iq); + + free(barejid); +} -- cgit 1.4.1-2-gfad0