mod_rest: Add mapping of XEP-0380: Explicit Message Encryption
authorKim Alvefur <zash@zash.se>
Sun, 22 May 2022 17:05:05 +0200
changeset 4953 8f625a7dc957
parent 4952 2ff1fa824c5d
child 4954 c83bc703825d
mod_rest: Add mapping of XEP-0380: Explicit Message Encryption Useful since OMEMO etc isn't mapped
mod_rest/res/schema-xmpp.json
--- a/mod_rest/res/schema-xmpp.json	Sat May 21 22:57:57 2022 +0200
+++ b/mod_rest/res/schema-xmpp.json	Sun May 22 17:05:05 2022 +0200
@@ -735,6 +735,15 @@
                   "namespace" : "urn:xmpp:chat-markers:0"
                }
             },
+            "encryption" : {
+               "title" : "XEP-0380: Explicit Message Encryption",
+               "type" : "string",
+               "xml" : {
+                  "name" : "encryption",
+                  "namespace" : "urn:xmpp:eme:0",
+                  "x_single_attribute" : "namespace"
+               }
+            },
             "fallback" : {
                "title" : "XEP-0428: Fallback Indication",
                "type" : "boolean",