aboutsummaryrefslogtreecommitdiff
path: root/xmpp-vala/src/module/bind.vala
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2021-03-19 23:05:12 +0100
committerfiaxh <git@lightrise.org>2021-03-21 12:41:35 +0100
commit8a95f9dd1dcc3e9038f0ef48d8ec10692fe08a4e (patch)
treecd2d3c9078d1f0a66a869dcf6b5dc075a3be2ba2 /xmpp-vala/src/module/bind.vala
parentdfd79401044834b164c50f5948986719eabf8127 (diff)
downloaddino-8a95f9dd1dcc3e9038f0ef48d8ec10692fe08a4e.tar.gz
dino-8a95f9dd1dcc3e9038f0ef48d8ec10692fe08a4e.zip
Add initial Jingle Message Initiation (XEP-0353) support
Co-authored-by: Marvin W <git@larma.de>
Diffstat (limited to 'xmpp-vala/src/module/bind.vala')
-rw-r--r--xmpp-vala/src/module/bind.vala4
1 files changed, 4 insertions, 0 deletions
diff --git a/xmpp-vala/src/module/bind.vala b/xmpp-vala/src/module/bind.vala
index 89398bfb..4df8881a 100644
--- a/xmpp-vala/src/module/bind.vala
+++ b/xmpp-vala/src/module/bind.vala
@@ -69,6 +69,10 @@ namespace Xmpp.Bind {
public Jid? my_jid;
public bool finished = false;
+ public static Jid? get_my_jid(XmppStream stream) {
+ return stream.get_flag(IDENTITY).my_jid;
+ }
+
public override string get_ns() { return NS_URI; }
public override string get_id() { return IDENTITY.id; }
}