about summary refs log tree commit diff stats
path: root/src/xmpp
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2019-10-18 10:46:06 +0200
committerMichael Vetter <jubalh@iodoru.org>2019-10-18 10:46:06 +0200
commit33083662d16121bbc5e890400a038d546dbedeb2 (patch)
tree766bead3c7a74312f10e53795c66ae78005796db /src/xmpp
parent430b2eaa0d3f8638f3442b3dca26d6bf4a4891cb (diff)
downloadprofani-tty-33083662d16121bbc5e890400a038d546dbedeb2.tar.gz
Add XEP-0359 to capabilities
We implement </origin-id> from [XEP-0359](https://xmpp.org/extensions/xep-0359.html).
We already had this implemented for OMEMO. And now use it to check
whether MUC messages were sent from us
(https://github.com/profanity-im/profanity/issues/1201).

We don't implement </stanza-id> yet, but probably need to do so for MAM.

Anyways let's flag this as implementing the XEP.

Fix https://github.com/profanity-im/profanity/issues/1207
Diffstat (limited to 'src/xmpp')
-rw-r--r--src/xmpp/capabilities.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/xmpp/capabilities.c b/src/xmpp/capabilities.c
index 8d66b25a..5216119e 100644
--- a/src/xmpp/capabilities.c
+++ b/src/xmpp/capabilities.c
@@ -102,6 +102,7 @@ caps_init(void)
     g_hash_table_add(prof_features, strdup(STANZA_NS_VERSION));
     g_hash_table_add(prof_features, strdup(STANZA_NS_CHATSTATES));
     g_hash_table_add(prof_features, strdup(STANZA_NS_PING));
+    g_hash_table_add(prof_features, strdup(STANZA_NS_STABLE_ID));
     if (prefs_get_boolean(PREF_RECEIPTS_SEND)) {
         g_hash_table_add(prof_features, strdup(STANZA_NS_RECEIPTS));
     }